mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +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) {
|
void PhysicalEntitySimulation::addEntityInternal(EntityItemPointer entity) {
|
||||||
assert(entity);
|
assert(entity);
|
||||||
if (entity->shouldBePhysical()) {
|
if (entity->shouldBePhysical()) {
|
||||||
EntityMotionState* motionState = static_cast<EntityMotionState*>(entity->getPhysicsInfo());
|
EntityMotionState* motionState = static_cast<EntityMotionState*>(entity->getPhysicsInfo());
|
||||||
if (!motionState) {
|
if (!motionState) {
|
||||||
_pendingAdds.insert(entity);
|
_pendingAdds.insert(entity);
|
||||||
|
@ -117,6 +117,7 @@ void PhysicalEntitySimulation::clearEntitiesInternal() {
|
||||||
_pendingRemoves.clear();
|
_pendingRemoves.clear();
|
||||||
_pendingAdds.clear();
|
_pendingAdds.clear();
|
||||||
_pendingChanges.clear();
|
_pendingChanges.clear();
|
||||||
|
_outgoingChanges.clear();
|
||||||
}
|
}
|
||||||
// end EntitySimulation overrides
|
// end EntitySimulation overrides
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue