Skip to content

Commit

Permalink
XEEN: Fix purchasing spells from the guild
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Mar 24, 2018
1 parent e7bf004 commit 4c5592f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/xeen/dialogs/dialogs_spells.cpp
Expand Up @@ -201,14 +201,14 @@ Character *SpellsDialog::execute(ButtonContainer *priorDialog, Character *c, int

Common::String msg = (modeCopy & 0x80) ?
Common::String::format(Res.SPELL_INFO, spellName.c_str(), spellDesc.c_str()) :
Common::String::format(Res.SPELL_PURCHASE, spellName.c_str(), spellCost);
Common::String::format(Res.SPELL_PURCHASE, spellDesc.c_str(), spellName.c_str(), spellCost);

if (Confirm::show(_vm, msg, modeCopy + 1)) {
if (party.subtract(CONS_GOLD, spellCost, WHERE_PARTY, WT_FREEZE_WAIT)) {
c->_spells[spellIndex] = true;
sound.stopSound();
intf._overallFrame = 0;
sound.playSound(ccNum ? "guild12.voc" : "parrot2.voc", 1);
sound.playSound(ccNum ? "parrot2.voc" : "guild12.voc", 1);
} else {
sound.playFX(21);
}
Expand Down

0 comments on commit 4c5592f

Please sign in to comment.