Fix collider leak;

This commit is contained in:
bjorn 2024-04-07 15:13:33 -07:00
parent 15649802c8
commit 985ba6bd13
1 changed files with 1 additions and 0 deletions

View File

@ -404,6 +404,7 @@ void lovrColliderDestroyData(Collider* collider) {
World* world = collider->world;
JPH_BodyInterface_RemoveBody(world->bodies, collider->id);
JPH_BodyInterface_DestroyBody(world->bodies, collider->id);
collider->body = NULL;
if (collider->next) collider->next->prev = collider->prev;