From c12a068bcc8d4b593f0475401577c316c71c0104 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 8 Aug 2019 19:14:47 +0200 Subject: HDB: Better Lua tracing --- engines/hdb/lua-script.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 495d30c604..57fedcf0db 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -1829,15 +1829,15 @@ bool LuaScript::initScript(Common::SeekableReadStream *stream, const char *scrip // Make sure we start from the beginning _globalLuaStream->seek(0); - if (!executeMPC(_globalLuaStream, "global code", "GLOBAL.LUA", _globalLuaLength)) { + if (!executeMPC(_globalLuaStream, "GLOBAL.LUA", "GLOBAL.LUA", _globalLuaLength)) { error("LuaScript::initScript: 'global code' failed to execute"); return false; } // Load script and execute it - if (!executeMPC(stream, "level code", scriptName, length)) { - error("LuaScript::initScript: 'level code' failed to execute"); + if (!executeMPC(stream, scriptName, scriptName, length)) { + error("LuaScript::initScript: %s failed to execute", scriptName); return false; } -- cgit v1.2.3