From 538e550b2b2b9f0d71a7adca8d4e89912b3a1d70 Mon Sep 17 00:00:00 2001 From: cc9cii Date: Wed, 13 May 2015 10:30:44 +1000 Subject: [PATCH] Fix for Bug #2543. Spells magic effect id typo. --- apps/opencs/model/world/nestedcoladapterimp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opencs/model/world/nestedcoladapterimp.hpp b/apps/opencs/model/world/nestedcoladapterimp.hpp index ea2037eb8..776a908ba 100644 --- a/apps/opencs/model/world/nestedcoladapterimp.hpp +++ b/apps/opencs/model/world/nestedcoladapterimp.hpp @@ -311,7 +311,7 @@ namespace CSMWorld case 0: { if (effect.mEffectID >=0 && effect.mEffectID < ESM::MagicEffect::Length) - return effect.mRange; + return effect.mEffectID; else throw std::runtime_error("Magic effects ID unexpected value"); }