mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 13:36:40 +00:00
Fix a regression involving default arguments
This commit is contained in:
parent
a854a6e04a
commit
31a7c83cc7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue