use for loop

This commit is contained in:
Irlan 2018-07-18 16:53:54 -03:00
parent f70e4be908
commit eb8a7eefe8

View File

@ -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();
} }
} }