From 56cd0da52270a66b3bc5b0f17541fcaef565185b Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 9 Sep 2014 04:44:14 +0200 Subject: [PATCH] Fix potential infinite recursion when an area effect spell is reflected (Fixes #1896) --- 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 a1f0d994af..373ca7af93 100644 --- a/apps/openmw/mwmechanics/spellcasting.cpp +++ b/apps/openmw/mwmechanics/spellcasting.cpp @@ -519,7 +519,7 @@ namespace MWMechanics MWBase::Environment::get().getWorld()->explodeSpell(mHitPosition, effects, caster, mId, mSourceName); if (!reflectedEffects.mList.empty()) - inflict(caster, target, reflectedEffects, range, true); + inflict(caster, target, reflectedEffects, range, true, exploded); if (!appliedLastingEffects.empty()) {