remove unnecessary assert

This commit is contained in:
Andrew Meadows 2018-03-16 11:46:04 -07:00
parent eb07f6732f
commit 170ec83870

View file

@ -271,12 +271,10 @@ void PhysicalEntitySimulation::handleChangedMotionStates(const VectorOfMotionSta
assert(state); assert(state);
if (state->getType() == MOTIONSTATE_TYPE_ENTITY) { if (state->getType() == MOTIONSTATE_TYPE_ENTITY) {
EntityMotionState* entityState = static_cast<EntityMotionState*>(state); EntityMotionState* entityState = static_cast<EntityMotionState*>(state);
EntityItemPointer entity = entityState->getEntity();
assert(entity.get());
if (entityState->isCandidateForOwnership()) { if (entityState->isCandidateForOwnership()) {
_outgoingChanges.insert(entityState); _outgoingChanges.insert(entityState);
} }
_entitiesToSort.insert(entity); _entitiesToSort.insert(entityState->getEntity());
} }
} }
} }