aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-08 19:14:47 +0200
committerEugene Sandulenko2019-09-03 17:17:33 +0200
commitc12a068bcc8d4b593f0475401577c316c71c0104 (patch)
tree86c393ea1c579a6db5e0aa80c7983ecd4c50977f
parent1157a88cca189e18153088e35ae9bdfec9d629e9 (diff)
downloadscummvm-rg350-c12a068bcc8d4b593f0475401577c316c71c0104.tar.gz
scummvm-rg350-c12a068bcc8d4b593f0475401577c316c71c0104.tar.bz2
scummvm-rg350-c12a068bcc8d4b593f0475401577c316c71c0104.zip
HDB: Better Lua tracing
-rw-r--r--engines/hdb/lua-script.cpp6
1 files 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;
}