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:
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…
x
Reference in New Issue
Block a user