mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 06:13:10 +00:00
REVIEWED: Infinite loop on closing #1861
This commit is contained in:
parent
c15d08d6ec
commit
d432d03aea
@ -891,15 +891,13 @@ PHYSACDEF void ClosePhysics(void)
|
|||||||
// Unitialize physics manifolds dynamic memory allocations
|
// Unitialize physics manifolds dynamic memory allocations
|
||||||
if (physicsManifoldsCount > 0)
|
if (physicsManifoldsCount > 0)
|
||||||
{
|
{
|
||||||
for (unsigned int i = physicsManifoldsCount - 1; i >= 0; i--)
|
for (int i = physicsManifoldsCount - 1; i >= 0; i--) DestroyPhysicsManifold(contacts[i]);
|
||||||
DestroyPhysicsManifold(contacts[i]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unitialize physics bodies dynamic memory allocations
|
// Unitialize physics bodies dynamic memory allocations
|
||||||
if (physicsBodiesCount > 0)
|
if (physicsBodiesCount > 0)
|
||||||
{
|
{
|
||||||
for (unsigned int i = physicsBodiesCount - 1; i >= 0; i--)
|
for (int i = physicsBodiesCount - 1; i >= 0; i--) DestroyPhysicsBody(bodies[i]);
|
||||||
DestroyPhysicsBody(bodies[i]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trace log info
|
// Trace log info
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user