diff options
author | Florian Kagerer | 2009-10-24 18:52:57 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-10-24 18:52:57 +0000 |
commit | b07e8d3c20d9569000bc4194652e3a0721c8af53 (patch) | |
tree | 9fe9c1ed1de107c37961f17b07fa542f922671a9 | |
parent | 4a3ebce6991f96f743e00e9544c51f64f091c286 (diff) | |
download | scummvm-rg350-b07e8d3c20d9569000bc4194652e3a0721c8af53.tar.gz scummvm-rg350-b07e8d3c20d9569000bc4194652e3a0721c8af53.tar.bz2 scummvm-rg350-b07e8d3c20d9569000bc4194652e3a0721c8af53.zip |
LOL: fixed bug in spell casting code
svn-id: r45361
-rw-r--r-- | engines/kyra/lol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index 471e791c9e..f0367a39a4 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -1989,7 +1989,7 @@ int LoLEngine::castSpell(int charNum, int spellType, int spellLevel) { return 0; setCharacterMagicOrHitPoints(charNum, 1, -_activeSpell.p->mpRequired[spellLevel], 1); - setCharacterMagicOrHitPoints(charNum, 0, -_activeSpell.p[1].hpRequired[spellLevel], 1); + setCharacterMagicOrHitPoints(charNum, 0, -_activeSpell.p->hpRequired[spellLevel], 1); gui_drawCharPortraitWithStats(charNum); if (_spellProcs[spellType]->isValid()) |