Kill the entity in processRemovedEntities before calling prepareEntityForDelete

This was removed back in 9d92546a and causes an assertion (#337)
This commit is contained in:
Dale Glass 2020-05-10 18:39:13 +02:00
parent affcc6f918
commit 95570d5abc

View file

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