mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
remove entities in PhysicsSimulation dtor
This commit is contained in:
parent
fbafcb6fd8
commit
9950c5b209
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@ PhysicsSimulation::PhysicsSimulation() : _collisionList(MAX_COLLISIONS_PER_SIMUL
|
|||
}
|
||||
|
||||
PhysicsSimulation::~PhysicsSimulation() {
|
||||
int numEntities = _entities.size();
|
||||
for (int i = 0; i < numEntities; ++i) {
|
||||
_entities[i]->_simulation = NULL;
|
||||
}
|
||||
_entities.clear();
|
||||
_dolls.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue