aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/script/luascript.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword25/script/luascript.cpp b/engines/sword25/script/luascript.cpp
index d57bd5e7b0..8e65010298 100644
--- a/engines/sword25/script/luascript.cpp
+++ b/engines/sword25/script/luascript.cpp
@@ -152,11 +152,11 @@ bool LuaScriptEngine::Init() {
// Initialize debugging callback
if (DebugMan.isDebugChannelEnabled(kDebugScript)) {
int mask = 0;
- if (gDebugLevel == 1)
+ if ((gDebugLevel & 1) != 0)
mask |= LUA_MASKCALL;
- if (gDebugLevel == 2)
+ if ((gDebugLevel & 2) != 0)
mask |= LUA_MASKRET;
- if (gDebugLevel == 4)
+ if ((gDebugLevel & 4) != 0)
mask |= LUA_MASKLINE;
if (mask != 0)