From 5645d63acdac555d987cb106bf1e84182c7ae52e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 19 Mar 2018 18:32:07 -0400 Subject: 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 --- engines/xeen/debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/xeen/debugger.cpp') 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; } -- cgit v1.2.3