aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/dialogs_error.cpp')
-rw-r--r--engines/xeen/dialogs_error.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/xeen/dialogs_error.cpp b/engines/xeen/dialogs_error.cpp
index 7f649afd86..7204bad8fe 100644
--- a/engines/xeen/dialogs_error.cpp
+++ b/engines/xeen/dialogs_error.cpp
@@ -93,6 +93,7 @@ void CantCast::show(XeenEngine *vm, int spellId, int componentNum) {
void CantCast::execute(int spellId, int componentNum) {
EventsManager &events = *_vm->_events;
SoundManager &sound = *_vm->_sound;
+ Spells &spells = *_vm->_spells;
Window &w = _vm->_screen->_windows[6];
Mode oldMode = _vm->_mode;
_vm->_mode = MODE_FF;
@@ -100,7 +101,9 @@ void CantCast::execute(int spellId, int componentNum) {
sound.playFX(21);
w.open();
w.writeString(Common::String::format(NOT_ENOUGH_TO_CAST,
- SPELL_CAST_COMPONENTS[componentNum - 1]));
+ SPELL_CAST_COMPONENTS[componentNum - 1],
+ spells._spellNames[spellId].c_str()
+ ));
w.update();
do {