1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 08:53:52 +00:00

Merge branch 'arrow_on_target' into 'master'

Fix a regression involving default arguments

See merge request OpenMW/openmw!1311
This commit is contained in:
Alexei Kotov 2021-10-21 20:34:10 +00:00
commit ccbc6d7b68

View file

@ -47,7 +47,7 @@ namespace MWMechanics
{ {
MWMechanics::CastSpell cast(attacker, victim, fromProjectile); MWMechanics::CastSpell cast(attacker, victim, fromProjectile);
cast.mHitPosition = hitPosition; 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 // 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()) if(!victim.isEmpty() && victim.getClass().isActor())
MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim); MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim);