mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +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);
|
_mortalEntities.remove(entity);
|
||||||
_updateableEntities.remove(entity);
|
_updateableEntities.remove(entity);
|
||||||
removeEntityInternal(entity);
|
removeEntityInternal(entity);
|
||||||
|
itemItr = _entitiesToBeSorted.erase(itemItr);
|
||||||
} else {
|
} else {
|
||||||
moveOperator.addEntityToMoveList(entity, newCube);
|
moveOperator.addEntityToMoveList(entity, newCube);
|
||||||
|
++itemItr;
|
||||||
}
|
}
|
||||||
++itemItr;
|
|
||||||
}
|
}
|
||||||
if (moveOperator.hasMovingEntities()) {
|
if (moveOperator.hasMovingEntities()) {
|
||||||
PerformanceTimer perfTimer("recurseTreeWithOperator");
|
PerformanceTimer perfTimer("recurseTreeWithOperator");
|
||||||
|
|
Loading…
Reference in a new issue