1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-17 13:43:08 +00:00

Don't hit the ground

This commit is contained in:
Evil Eye 2021-10-14 17:40:03 +02:00
parent bba80b07a2
commit 5805c0114a

View file

@ -49,7 +49,7 @@ namespace MWMechanics
cast.mHitPosition = hitPosition; cast.mHitPosition = hitPosition;
cast.cast(object, false); cast.cast(object, false);
// Apply magic effects directly instead of waiting a frame to allow soul trap to work on one-hit kills // 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); MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim);
return true; return true;
} }