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:
commit
ccbc6d7b68
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