1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Hotfix for crash when deleting an actor

This commit is contained in:
scrawl 2014-10-06 14:56:07 +02:00
parent 8097d9801d
commit 9ab8d0a8e6

View File

@ -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)