don't forget to remove from _outgoingChanges

This commit is contained in:
Andrew Meadows 2016-02-10 10:35:33 -08:00
parent 132169395c
commit 84fb983da7

View file

@ -169,6 +169,7 @@ void PhysicalEntitySimulation::getObjectsToRemoveFromPhysics(VectorOfMotionState
EntityMotionState* motionState = static_cast<EntityMotionState*>(entity->getPhysicsInfo()); EntityMotionState* motionState = static_cast<EntityMotionState*>(entity->getPhysicsInfo());
assert(motionState); assert(motionState);
_pendingChanges.remove(motionState); _pendingChanges.remove(motionState);
_outgoingChanges.remove(motionState);
_physicalObjects.remove(motionState); _physicalObjects.remove(motionState);
result.push_back(motionState); result.push_back(motionState);
_entitiesToRelease.insert(entity); _entitiesToRelease.insert(entity);