mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 13:19:54 +02:00
remove unnecessary assert
This commit is contained in:
parent
eb07f6732f
commit
170ec83870
1 changed files with 1 additions and 3 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue