1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 07:19:54 +00:00

Fix for Bug #2543. Spells magic effect id typo.

This commit is contained in:
cc9cii 2015-05-13 10:30:44 +10:00
parent 6803f95398
commit 538e550b2b

View file

@ -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");
}