Hotfix for crash when deleting an actor

deque
scrawl 10 years ago
parent 8097d9801d
commit 9ab8d0a8e6

@ -859,6 +859,8 @@ namespace MWWorld
waterCollision = true;
OEngine::Physic::PhysicActor *physicActor = mEngine->getCharacter(iter->first.getRefData().getHandle());
if (!physicActor) // actor was already removed from the scene
continue;
physicActor->setCanWaterWalk(waterCollision);
// 100 points of slowfall reduce gravity by 90% (this is just a guess)

Loading…
Cancel
Save