aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-24 16:01:43 -0400
committerPaul Gilbert2018-03-24 16:01:43 -0400
commit4c5592f28666f8608d0509c8f53a65106fd11aaf (patch)
tree3a3ae1349b2df9d908854aedc1b7f2deae984af6 /engines/xeen/dialogs
parente7bf00480cfcdaa3ff23e6b14188b4c7cf683bc1 (diff)
downloadscummvm-rg350-4c5592f28666f8608d0509c8f53a65106fd11aaf.tar.gz
scummvm-rg350-4c5592f28666f8608d0509c8f53a65106fd11aaf.tar.bz2
scummvm-rg350-4c5592f28666f8608d0509c8f53a65106fd11aaf.zip
XEEN: Fix purchasing spells from the guild
Diffstat (limited to 'engines/xeen/dialogs')
-rw-r--r--engines/xeen/dialogs/dialogs_spells.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp
index b1890590b2..11c49989ac 100644
--- a/engines/xeen/dialogs/dialogs_spells.cpp
+++ b/engines/xeen/dialogs/dialogs_spells.cpp
@@ -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);
}