diff options
author | Paul Gilbert | 2015-02-28 22:53:17 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-02-28 22:53:17 -0500 |
commit | 07f504fe160d051c458e1f0035d4784ac74e2530 (patch) | |
tree | 5df86d1e990315ee7d0baecd14d785cc250af4d4 /engines/xeen/interface.cpp | |
parent | 9789962605a30e8a993370d3de3c1a30582f3964 (diff) | |
download | scummvm-rg350-07f504fe160d051c458e1f0035d4784ac74e2530.tar.gz scummvm-rg350-07f504fe160d051c458e1f0035d4784ac74e2530.tar.bz2 scummvm-rg350-07f504fe160d051c458e1f0035d4784ac74e2530.zip |
XEEN: Fix ordering of spell list and methods
Diffstat (limited to 'engines/xeen/interface.cpp')
-rw-r--r-- | engines/xeen/interface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp index 923eaeac0b..d1a1478d95 100644 --- a/engines/xeen/interface.cpp +++ b/engines/xeen/interface.cpp @@ -541,7 +541,7 @@ void Interface::perform() { if (spellId == -1 || c == nullptr) break; - result = spells.castSpell(c, spellId); + result = spells.castSpell(c, (MagicSpell)spellId); } while (result != -1); if (result == 1) { @@ -2008,7 +2008,7 @@ void Interface::doCombat() { int spellId = CastSpell::show(_vm); if (spellId != -1) { Character *c = combat._combatParty[combat._whosTurn]; - spells.castSpell(c, spellId); + spells.castSpell(c, (MagicSpell)spellId); nextChar(); } else { highlightChar(combat._combatParty[combat._whosTurn]->_rosterId); |