don't forget to cleanup expired mortal entities

This commit is contained in:
Andrew Meadows 2019-09-23 17:22:15 -07:00
parent 6fbcc9151e
commit 50f0c90519

View file

@ -75,7 +75,8 @@ void PhysicalEntitySimulation::removeEntityInternal(EntityItemPointer entity) {
if (motionState) {
removeOwnershipData(motionState);
_entitiesToRemoveFromPhysics.insert(entity);
} else if (entity->isDead() && entity->getElement()) {
}
if (entity->isDead() && entity->getElement()) {
_deadEntities.insert(entity);
}
}