REVIEWED: Infinite loop on closing #1861
This commit is contained in:
parent
c15d08d6ec
commit
d432d03aea
1 changed files with 2 additions and 4 deletions
|
@ -891,15 +891,13 @@ PHYSACDEF void ClosePhysics(void)
|
|||
// Unitialize physics manifolds dynamic memory allocations
|
||||
if (physicsManifoldsCount > 0)
|
||||
{
|
||||
for (unsigned int i = physicsManifoldsCount - 1; i >= 0; i--)
|
||||
DestroyPhysicsManifold(contacts[i]);
|
||||
for (int i = physicsManifoldsCount - 1; i >= 0; i--) DestroyPhysicsManifold(contacts[i]);
|
||||
}
|
||||
|
||||
// Unitialize physics bodies dynamic memory allocations
|
||||
if (physicsBodiesCount > 0)
|
||||
{
|
||||
for (unsigned int i = physicsBodiesCount - 1; i >= 0; i--)
|
||||
DestroyPhysicsBody(bodies[i]);
|
||||
for (int i = physicsBodiesCount - 1; i >= 0; i--) DestroyPhysicsBody(bodies[i]);
|
||||
}
|
||||
|
||||
// Trace log info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue