aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/objects.cpp
diff options
context:
space:
mode:
authorStrangerke2013-12-24 18:24:09 +0100
committerStrangerke2013-12-24 18:24:48 +0100
commit28955963d4bcd71e1ae829a3a6690e135b17c2c1 (patch)
tree030e31e1a3f2865431dae5d15ade1cce702bad2c /engines/hopkins/objects.cpp
parent6957c5bce08d6221170407b03ededbc0421130d2 (diff)
downloadscummvm-rg350-28955963d4bcd71e1ae829a3a6690e135b17c2c1.tar.gz
scummvm-rg350-28955963d4bcd71e1ae829a3a6690e135b17c2c1.tar.bz2
scummvm-rg350-28955963d4bcd71e1ae829a3a6690e135b17c2c1.zip
HOPKINS: Fix bug #6456 - RTL not working.
Diffstat (limited to 'engines/hopkins/objects.cpp')
-rw-r--r--engines/hopkins/objects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp
index f2f547557f..347a6aabe8 100644
--- a/engines/hopkins/objects.cpp
+++ b/engines/hopkins/objects.cpp
@@ -2629,7 +2629,7 @@ void ObjectsManager::loadObjectIniFile() {
for (;;) {
int opcodeType = _vm->_script->handleOpcode(data + 20 * lastOpcodeResult);
- if (_vm->shouldQuit())
+ if (opcodeType == -1 || _vm->shouldQuit())
return;
if (opcodeType == 2)