From 03a6cbc8f9d1bf4c81fa21be79503ca2761d81cc Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 6 Jun 2019 01:25:30 +0200 Subject: HDB: Refer to the Lua error handler --- engines/hdb/lua-script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/hdb') 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); -- cgit v1.2.3