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.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/xeen/dialogs_error.cpp b/engines/xeen/dialogs_error.cpp
index cd29433820..d8697b05d9 100644
--- a/engines/xeen/dialogs_error.cpp
+++ b/engines/xeen/dialogs_error.cpp
@@ -36,7 +36,8 @@ void ErrorDialog::show(XeenEngine *vm, const Common::String &msg, ErrorWaitType
void ErrorDialog::execute(const Common::String &msg, ErrorWaitType waitType) {
Screen &screen = *_vm->_screen;
EventsManager &events = *_vm->_events;
- Window &w = screen._windows[6];
+ Windows &windows = *_vm->_windows;
+ Window &w = windows[6];
w.open();
w.writeString(msg);
@@ -94,7 +95,8 @@ void CantCast::execute(int spellId, int componentNum) {
EventsManager &events = *_vm->_events;
Sound &sound = *_vm->_sound;
Spells &spells = *_vm->_spells;
- Window &w = _vm->_screen->_windows[6];
+ Windows &windows = *_vm->_windows;
+ Window &w = windows[6];
Mode oldMode = _vm->_mode;
_vm->_mode = MODE_FF;