aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs/dialogs_spells.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-18 21:29:51 -0400
committerPaul Gilbert2018-03-18 21:29:51 -0400
commitc1b094bba830a4d1939bd61d0a929cd8f934d8fc (patch)
treeda931c0db03244b282e01224f269a5950fae263f /engines/xeen/dialogs/dialogs_spells.cpp
parent500ed10658001ccb55578a59d245ee2bfda63385 (diff)
downloadscummvm-rg350-c1b094bba830a4d1939bd61d0a929cd8f934d8fc.tar.gz
scummvm-rg350-c1b094bba830a4d1939bd61d0a929cd8f934d8fc.tar.bz2
scummvm-rg350-c1b094bba830a4d1939bd61d0a929cd8f934d8fc.zip
XEEN: Fix spells list selection for Vertigo guild
Diffstat (limited to 'engines/xeen/dialogs/dialogs_spells.cpp')
-rw-r--r--engines/xeen/dialogs/dialogs_spells.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp
index d2b473086e..c17859cf79 100644
--- a/engines/xeen/dialogs/dialogs_spells.cpp
+++ b/engines/xeen/dialogs/dialogs_spells.cpp
@@ -284,7 +284,7 @@ const char *SpellsDialog::setSpellText(Character *c, int mode) {
if ((mode & 0x7f) == 0) {
if (category != SPELLCAT_INVALID) {
if (party._mazeId == 49 || party._mazeId == 37) {
- for (uint spellId = 0; spellId < 76; ++spellId) {
+ for (uint spellId = 0; spellId < TOTAL_SPELLS; ++spellId) {
int idx = 0;
while (idx < CHAR_MAX_SPELLS && Res.SPELLS_ALLOWED[category][idx] != (int)spellId)
++idx;
@@ -319,7 +319,7 @@ const char *SpellsDialog::setSpellText(Character *c, int mode) {
} else {
for (int spellId = 0; spellId < 20; ++spellId) {
int idx = 0;
- while (Res.CLOUDS_SPELL_OFFSETS[party._mazeId - 29][spellId] !=
+ while (Res.CLOUDS_GUILD_SPELLS[party._mazeId - 28][spellId] !=
(int)Res.SPELLS_ALLOWED[category][idx] && idx < SPELLS_PER_CLASS)
++idx;