use for loop
This commit is contained in:
parent
f70e4be908
commit
eb8a7eefe8
@ -370,11 +370,9 @@ void b3World::StepCloth(float32 dt)
|
|||||||
{
|
{
|
||||||
B3_PROFILE("Step Cloth");
|
B3_PROFILE("Step Cloth");
|
||||||
|
|
||||||
b3Cloth* c = m_clothList.m_head;
|
for (b3Cloth* c = m_clothList.m_head; c; c = c->GetNext())
|
||||||
while (c)
|
|
||||||
{
|
{
|
||||||
c->Step(dt, m_gravity);
|
c->Step(dt, m_gravity);
|
||||||
c = c->GetNext();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user