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");
b3Cloth* c = m_clothList.m_head;
while (c)
for (b3Cloth* c = m_clothList.m_head; c; c = c->GetNext())
{
c->Step(dt, m_gravity);
c = c->GetNext();
}
}