diff options
Diffstat (limited to 'engines/xeen/dialogs/dialogs_spells.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs_spells.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp index 21bd7e2776..828281e688 100644 --- a/engines/xeen/dialogs/dialogs_spells.cpp +++ b/engines/xeen/dialogs/dialogs_spells.cpp @@ -383,7 +383,6 @@ CastSpell::~CastSpell() { int CastSpell::show(XeenEngine *vm) { Combat &combat = *vm->_combat; - Interface &intf = *vm->_interface; Party &party = *vm->_party; Spells &spells = *vm->_spells; int charNum; @@ -403,17 +402,19 @@ int CastSpell::show(XeenEngine *vm) { } Character *c = &party._activeParty[charNum]; - intf.highlightChar(charNum); - return show(vm, c); } int CastSpell::show(XeenEngine *vm, Character *&c) { + Interface &intf = *vm->_interface; Spells &spells = *vm->_spells; CastSpell *dlg = new CastSpell(vm); int spellId; int result = -1; + // Highlight the character + intf.highlightChar(c); + do { spellId = dlg->execute(c); |