From ecec7d8215b80e6dd99b35ffb1c3a7d23ad6eedb Mon Sep 17 00:00:00 2001 From: Allofich Date: Fri, 2 Sep 2016 22:51:20 +0900 Subject: [PATCH] Fix spells having explosions for wrong range type --- apps/openmw/mwworld/worldimp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 5652b2d78..4448a9c17 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -3163,8 +3163,9 @@ namespace MWWorld { const ESM::MagicEffect* effect = getStore().get().find(effectIt->mEffectID); - if (effectIt->mArea <= 0) - continue; // Not an area effect + if (effectIt->mArea <= 0 || effectIt->mRange != rangeType) + continue; // Not an area effect or not right range type + // Spawn the explosion orb effect const ESM::Static* areaStatic;