mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 02:22:32 +02:00
don't forget to cleanup expired mortal entities
This commit is contained in:
parent
6fbcc9151e
commit
50f0c90519
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue