aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-06 01:25:30 +0200
committerEugene Sandulenko2019-09-03 17:16:43 +0200
commit03a6cbc8f9d1bf4c81fa21be79503ca2761d81cc (patch)
tree55ca56e2f460570f11a59e5dd5dcc48ca531187d
parenta54d05ab9590ae3738d1c5fa30cae942d3aa7247 (diff)
downloadscummvm-rg350-03a6cbc8f9d1bf4c81fa21be79503ca2761d81cc.tar.gz
scummvm-rg350-03a6cbc8f9d1bf4c81fa21be79503ca2761d81cc.tar.bz2
scummvm-rg350-03a6cbc8f9d1bf4c81fa21be79503ca2761d81cc.zip
HDB: Refer to the Lua error handler
-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 b719b6b73a..bf1938873c 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -767,7 +767,7 @@ bool LuaScript::executeChunk(const char *chunk, uint chunkSize, const Common::St
lua_insert(_state, -2);
// Execute Chunk
- if (lua_pcall(_state, 0, 0, 0)) {
+ if (lua_pcall(_state, 0, 0, -2)) {
error("An error occured while executing \"%s\": %s.", chunkName.c_str(), lua_tostring(_state, -1));
lua_pop(_state, -1);