aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/debugger.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-19 18:32:07 -0400
committerPaul Gilbert2018-03-19 18:33:47 -0400
commit5645d63acdac555d987cb106bf1e84182c7ae52e (patch)
tree8b0758260830dd9fad8ece036742c75a5df4a3a0 /engines/xeen/debugger.cpp
parentef593ed8e33891200f80410a5aef6bd3e87f0a0a (diff)
downloadscummvm-rg350-5645d63acdac555d987cb106bf1e84182c7ae52e.tar.gz
scummvm-rg350-5645d63acdac555d987cb106bf1e84182c7ae52e.tar.bz2
scummvm-rg350-5645d63acdac555d987cb106bf1e84182c7ae52e.zip
XEEN: Standardize on a single SPELLS_PER_CLASS define
There was previous confusion because characters can have a maximum of 39 spells for their class. But the spell list for each class has 40 entries, of which the last one, #39, is always the 'No Spell' value
Diffstat (limited to 'engines/xeen/debugger.cpp')
-rw-r--r--engines/xeen/debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/debugger.cpp b/engines/xeen/debugger.cpp
index 21e58195d7..d5f1b40d29 100644
--- a/engines/xeen/debugger.cpp
+++ b/engines/xeen/debugger.cpp
@@ -95,7 +95,7 @@ bool Debugger::cmdSpells(int argc, const char **argv) {
for (uint charIdx = 0; charIdx < party._activeParty.size(); ++charIdx) {
Character &c = party._activeParty[charIdx];
- Common::fill(c._spells, c._spells + CHAR_MAX_SPELLS, true);
+ Common::fill(c._spells, c._spells + SPELLS_PER_CLASS, true);
c._currentSp = 9999;
}