mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 08:37:12 +00:00
Don't hit the ground
This commit is contained in:
parent
bba80b07a2
commit
5805c0114a
@ -49,7 +49,7 @@ namespace MWMechanics
|
||||
cast.mHitPosition = hitPosition;
|
||||
cast.cast(object, false);
|
||||
// Apply magic effects directly instead of waiting a frame to allow soul trap to work on one-hit kills
|
||||
if(victim.getClass().isActor())
|
||||
if(!victim.isEmpty() && victim.getClass().isActor())
|
||||
MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user