1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Fix a regression involving default arguments

This commit is contained in:
Evil Eye 2021-10-21 17:22:15 +02:00
parent a854a6e04a
commit 31a7c83cc7

View File

@ -47,7 +47,7 @@ namespace MWMechanics
{
MWMechanics::CastSpell cast(attacker, victim, fromProjectile);
cast.mHitPosition = hitPosition;
cast.cast(object, false);
cast.cast(object, 0, false);
// Apply magic effects directly instead of waiting a frame to allow soul trap to work on one-hit kills
if(!victim.isEmpty() && victim.getClass().isActor())
MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim);