now exiting physics_world_remove_entity when an entity is found and removed

This commit is contained in:
Sara 2023-10-25 20:25:12 +02:00
parent f11ffc13ff
commit 73f40863db

View file

@ -68,6 +68,7 @@ void physics_world_remove_entity(PhysicsEntity entity) {
for(PhysicsEntity* itr = _world_bodies; itr < end; ++itr) {
if(itr->data == entity.data) {
_internal_physics_world_remove_entity(itr);
return;
}
}