aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2017-12-29 22:19:35 -0500
committerPaul Gilbert2017-12-29 22:19:35 -0500
commite5ab69614823578eefdd4cb9efa6bc4d9b9e1ffb (patch)
tree152643eee64f43e12ee1b6e0ec6dea85ecf96149 /engines/xeen
parent27c3e44551870339cd9709f06d8200933d4406f5 (diff)
downloadscummvm-rg350-e5ab69614823578eefdd4cb9efa6bc4d9b9e1ffb.tar.gz
scummvm-rg350-e5ab69614823578eefdd4cb9efa6bc4d9b9e1ffb.tar.bz2
scummvm-rg350-e5ab69614823578eefdd4cb9efa6bc4d9b9e1ffb.zip
XEEN: Fix teleporting using magic mirror
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/dialogs_input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/dialogs_input.cpp b/engines/xeen/dialogs_input.cpp
index 8346c8e47b..6437778f7c 100644
--- a/engines/xeen/dialogs_input.cpp
+++ b/engines/xeen/dialogs_input.cpp
@@ -144,6 +144,7 @@ int StringInput::show(XeenEngine *vm, bool type, const Common::String &msg1,
int StringInput::execute(bool type, const Common::String &expected,
const Common::String &title, int opcode) {
+ FileManager &files = *_vm->_files;
Interface &intf = *_vm->_interface;
Scripts &scripts = *_vm->_scripts;
Windows &windows = *_vm->_windows;
@@ -165,8 +166,7 @@ int StringInput::execute(bool type, const Common::String &expected,
}
} else {
// Load in the mirror list
- File f(Common::String::format("%smirr.txt",
- _vm->_files->_isDarkCc ? "dark" : "xeen"));
+ File f(Common::String::format("%smirr.txt", files._isDarkCc ? "dark" : "xeen"), 1);
MirrorEntry me;
scripts._mirror.clear();
while (me.synchronize(f))