aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/character.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/character.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/character.cpp')
-rw-r--r--engines/xeen/character.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/character.cpp b/engines/xeen/character.cpp
index 3776e51e5d..ba81852c50 100644
--- a/engines/xeen/character.cpp
+++ b/engines/xeen/character.cpp
@@ -134,7 +134,7 @@ void Character::synchronize(Common::Serializer &s) {
}
// Synchronize spell list
- for (int i = 0; i < CHAR_MAX_SPELLS; ++i)
+ for (int i = 0; i < SPELLS_PER_CLASS; ++i)
s.syncAsByte(_spells[i]);
s.syncAsByte(_lloydMap);
s.syncAsByte(_lloydPosition.x);