From bf153e1c8e47e0b4347d63c8a22a2bb484ccebaa Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 21 Nov 2013 00:41:52 +0100 Subject: [PATCH] Fix bug applying instant effects --- apps/openmw/mwmechanics/spellcasting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/spellcasting.cpp b/apps/openmw/mwmechanics/spellcasting.cpp index 859d8d6991..9f7073d2af 100644 --- a/apps/openmw/mwmechanics/spellcasting.cpp +++ b/apps/openmw/mwmechanics/spellcasting.cpp @@ -157,7 +157,7 @@ namespace MWMechanics } } else - applyInstantEffect(mTarget, effectIt->mEffectID, magnitude); + applyInstantEffect(target, effectIt->mEffectID, magnitude); if (target.getClass().isActor() || magicEffect->mData.mFlags & ESM::MagicEffect::NoDuration) {