aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-17 00:53:34 +0200
committerEugene Sandulenko2019-09-03 17:17:21 +0200
commit345830222d0311d2f72cd932884838976687c6fa (patch)
tree124b7e8510bb193e80c58c6b63ba12531bc81684
parent2bb172a58614359ed720b24ba49e9b6c288b3d39 (diff)
downloadscummvm-rg350-345830222d0311d2f72cd932884838976687c6fa.tar.gz
scummvm-rg350-345830222d0311d2f72cd932884838976687c6fa.tar.bz2
scummvm-rg350-345830222d0311d2f72cd932884838976687c6fa.zip
HDB: Fix Lua execution at game restore
-rw-r--r--engines/hdb/lua-script.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index 23b10110fd..b82b7af8c8 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -186,10 +186,6 @@ void LuaScript::loadSaveFile(Common::InSaveFile *in, const char *fName) {
in->read(_globals[i]->string, 32);
}
- // Error handling function to be executed after the function is put on the stack
- lua_rawgeti(_state, LUA_REGISTRYINDEX, _pcallErrorhandlerRegistryIndex);
- lua_insert(_state, -2);
-
lua_getglobal(_state, "LoadState");
lua_pushstring(_state, fName);