mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
erase deleted entities from pending sort list
This commit is contained in:
parent
3d531e8304
commit
503afc8c73
1 changed files with 2 additions and 1 deletions
|
@ -99,10 +99,11 @@ void EntitySimulation::sortEntitiesThatMoved() {
|
|||
_mortalEntities.remove(entity);
|
||||
_updateableEntities.remove(entity);
|
||||
removeEntityInternal(entity);
|
||||
itemItr = _entitiesToBeSorted.erase(itemItr);
|
||||
} else {
|
||||
moveOperator.addEntityToMoveList(entity, newCube);
|
||||
++itemItr;
|
||||
}
|
||||
++itemItr;
|
||||
}
|
||||
if (moveOperator.hasMovingEntities()) {
|
||||
PerformanceTimer perfTimer("recurseTreeWithOperator");
|
||||
|
|
Loading…
Reference in a new issue