diff options
author | Paul Gilbert | 2018-03-30 20:08:31 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-30 20:08:31 -0400 |
commit | eca76ea91ec0b932d90d20608db2f4c1b9aae1cf (patch) | |
tree | 867935f98f76058e274071b259cc3f9eb856848b /engines/xeen/dialogs | |
parent | 83412c91af9d66084923150df2bb1ded3a67824a (diff) | |
download | scummvm-rg350-eca76ea91ec0b932d90d20608db2f4c1b9aae1cf.tar.gz scummvm-rg350-eca76ea91ec0b932d90d20608db2f4c1b9aae1cf.tar.bz2 scummvm-rg350-eca76ea91ec0b932d90d20608db2f4c1b9aae1cf.zip |
XEEN: Fix highlighting of character when Cast Spell dialog is opened
Diffstat (limited to 'engines/xeen/dialogs')
-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); |