diff options
author | Paul Gilbert | 2018-03-18 21:56:26 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-18 21:56:26 -0400 |
commit | d848c9a4144b1485c8298196be6c2e1c0540649a (patch) | |
tree | bfad39fb48335b7050377e41cd73ee2c93af9f3b | |
parent | c1b094bba830a4d1939bd61d0a929cd8f934d8fc (diff) | |
download | scummvm-rg350-d848c9a4144b1485c8298196be6c2e1c0540649a.tar.gz scummvm-rg350-d848c9a4144b1485c8298196be6c2e1c0540649a.tar.bz2 scummvm-rg350-d848c9a4144b1485c8298196be6c2e1c0540649a.zip |
XEEN: Don't show a 'None Ready' spell in spell selection dialog
-rw-r--r-- | engines/xeen/dialogs/dialogs_spells.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp index c17859cf79..abb2478587 100644 --- a/engines/xeen/dialogs/dialogs_spells.cpp +++ b/engines/xeen/dialogs/dialogs_spells.cpp @@ -342,7 +342,7 @@ const char *SpellsDialog::setSpellText(Character *c, int mode) { if (c->getMaxSP() == 0) { return Res.NOT_A_SPELL_CASTER; } else { - for (int spellIndex = 0; spellIndex < SPELLS_PER_CLASS; ++spellIndex) { + for (int spellIndex = 0; spellIndex < CHAR_MAX_SPELLS; ++spellIndex) { if (c->_spells[spellIndex]) { int spellId = Res.SPELLS_ALLOWED[category][spellIndex]; int gemCost = Res.SPELL_GEM_COST[spellId]; |