diff options
author | athrxx | 2012-12-17 18:52:06 +0100 |
---|---|---|
committer | athrxx | 2012-12-17 20:01:24 +0100 |
commit | 79eb6c898a704f2e41855893643ff3b3aa0bb287 (patch) | |
tree | 4445fcdaa1799ae5ef3bab1716f4928ba755461f | |
parent | e9e2d6ccb964e4b8db77f8d65bc0f0f01f48c95a (diff) | |
download | scummvm-rg350-79eb6c898a704f2e41855893643ff3b3aa0bb287.tar.gz scummvm-rg350-79eb6c898a704f2e41855893643ff3b3aa0bb287.tar.bz2 scummvm-rg350-79eb6c898a704f2e41855893643ff3b3aa0bb287.zip |
KYRA: (EOB) - fix bug #3596548 ("Crash when using Mage Spells such as Magic Missile")
-rw-r--r-- | engines/kyra/magic_eob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/magic_eob.cpp b/engines/kyra/magic_eob.cpp index fbddd620d1..b5f2a4e803 100644 --- a/engines/kyra/magic_eob.cpp +++ b/engines/kyra/magic_eob.cpp @@ -179,7 +179,7 @@ void EoBCoreEngine::castSpell(int spell, int weaponSlot) { if ((s->flags & 0x100) && (c->effectFlags & 0x40)) // remove invisibility effect - removeCharacterEffect(10, _openBookChar, 1); + removeCharacterEffect(_flags.gameID == GI_EOB1 ? 8 : 10, _openBookChar, 1); int ci = _openBookChar; if (ci > 3) |