now exiting physics_world_remove_entity when an entity is found and removed
This commit is contained in:
parent
f11ffc13ff
commit
73f40863db
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue