aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb')
-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);