Merge pull request #340 from daleglass/fix_entity_is_dead_assertion

Fix #337 by ensuring the object is marked as dead.
This commit is contained in:
daleglass 2020-05-11 01:42:54 +02:00 committed by GitHub
commit 766bac7bd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -784,6 +784,7 @@ void EntityTree::processRemovedEntities(const DeleteEntityOperator& theOperator)
}
}
if (theEntity->isSimulated()) {
theEntity->die();
_simulation->prepareEntityForDelete(theEntity);
}
}