mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 02:45:32 +00:00
Hotfix for crash when deleting an actor
This commit is contained in:
parent
8097d9801d
commit
9ab8d0a8e6
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue