mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 07:34:02 +02:00
fix crash mode when leaving domain with handgun
This commit is contained in:
parent
c14433979b
commit
ff83f8fc37
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,7 @@ void PhysicalEntitySimulation::updateEntitiesInternal(const quint64& now) {
|
|||
|
||||
void PhysicalEntitySimulation::addEntityInternal(EntityItemPointer entity) {
|
||||
assert(entity);
|
||||
if (entity->shouldBePhysical()) {
|
||||
if (entity->shouldBePhysical()) {
|
||||
EntityMotionState* motionState = static_cast<EntityMotionState*>(entity->getPhysicsInfo());
|
||||
if (!motionState) {
|
||||
_pendingAdds.insert(entity);
|
||||
|
@ -117,6 +117,7 @@ void PhysicalEntitySimulation::clearEntitiesInternal() {
|
|||
_pendingRemoves.clear();
|
||||
_pendingAdds.clear();
|
||||
_pendingChanges.clear();
|
||||
_outgoingChanges.clear();
|
||||
}
|
||||
// end EntitySimulation overrides
|
||||
|
||||
|
|
Loading…
Reference in a new issue