aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-19 22:54:51 +0200
committerEugene Sandulenko2019-09-03 17:17:24 +0200
commitb96049a2368f3707f566c7f4daf41fe41f7c3795 (patch)
tree5f86650cdec932401d15cf518f3880600b5e4556
parent7b07d2f88cb5916105060255bcdc56c8f422c932 (diff)
downloadscummvm-rg350-b96049a2368f3707f566c7f4daf41fe41f7c3795.tar.gz
scummvm-rg350-b96049a2368f3707f566c7f4daf41fe41f7c3795.tar.bz2
scummvm-rg350-b96049a2368f3707f566c7f4daf41fe41f7c3795.zip
HDB: Fix game restarting
-rw-r--r--engines/hdb/lua-script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index 048fd012d6..775daf4ec3 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -1804,7 +1804,7 @@ bool LuaScript::initScript(Common::SeekableReadStream *stream, const char *scrip
}
// Load GLOBAL.LUA and execute it
-
+ _globalLuaStream->seek(0); // Make sure we start from the beginning
if (!executeMPC(_globalLuaStream, "global code", "GLOBAL.LUA", _globalLuaLength)) {
error("LuaScript::initScript: 'global code' failed to execute");
return false;