[Scummvm-git-logs] scummvm master -> d848c9a4144b1485c8298196be6c2e1c0540649a
dreammaster
dreammaster at scummvm.org
Mon Mar 19 02:56:32 CET 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d848c9a414 XEEN: Don't show a 'None Ready' spell in spell selection dialog
Commit: d848c9a4144b1485c8298196be6c2e1c0540649a
https://github.com/scummvm/scummvm/commit/d848c9a4144b1485c8298196be6c2e1c0540649a
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-03-18T21:56:26-04:00
Commit Message:
XEEN: Don't show a 'None Ready' spell in spell selection dialog
Changed paths:
engines/xeen/dialogs/dialogs_spells.cpp
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp
index c17859c..abb2478 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];
More information about the Scummvm-git-logs
mailing list