aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_spells.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-05 20:47:15 -0500
committerPaul Gilbert2015-02-05 20:47:15 -0500
commitb39f4179ce53e9e98c4e3d80cc0f075dabd8d8f6 (patch)
treecff08d13add0f2f5583c1d7ad1bba06d7946c2de /engines/xeen/dialogs_spells.cpp
parent6595abcf144850cc23208db71ce0098d9921112e (diff)
downloadscummvm-rg350-b39f4179ce53e9e98c4e3d80cc0f075dabd8d8f6.tar.gz
scummvm-rg350-b39f4179ce53e9e98c4e3d80cc0f075dabd8d8f6.tar.bz2
scummvm-rg350-b39f4179ce53e9e98c4e3d80cc0f075dabd8d8f6.zip
XEEN: Merged confirmation and yes/no dialogs into single source file
Diffstat (limited to 'engines/xeen/dialogs_spells.cpp')
-rw-r--r--engines/xeen/dialogs_spells.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/dialogs_spells.cpp b/engines/xeen/dialogs_spells.cpp
index 714e881128..4f86707554 100644
--- a/engines/xeen/dialogs_spells.cpp
+++ b/engines/xeen/dialogs_spells.cpp
@@ -21,7 +21,7 @@
*/
#include "xeen/dialogs_spells.h"
-#include "xeen/dialogs_confirm.h"
+#include "xeen/dialogs_query.h"
#include "xeen/resources.h"
#include "xeen/spells.h"
#include "xeen/sprites.h"
@@ -216,7 +216,7 @@ Character *SpellsScroll::execute(Character *c, int v2) {
Common::String::format(SPELLS_PRESS_A_KEY, msg.c_str()) :
Common::String::format(SPELLS_PURCHASE, msg.c_str(), spellCost);
- if (ConfirmDialog::show(_vm, msg, v2Copy + 1)) {
+ if (Confirm::show(_vm, msg, v2Copy + 1)) {
if (party.subtract(0, spellCost, 0, WT_FREEZE_WAIT)) {
++c->_spells[spellIndex];
sound.playSample(nullptr, 0);