mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Fix check for if the first arg to log is a number
This commit is contained in:
parent
0b1b10fb52
commit
11d1348c2c
@ -142,7 +142,7 @@ namespace Automation4 {
|
|||||||
ProgressSink *ps = GetObjPointer(L, lua_upvalueindex(1));
|
ProgressSink *ps = GetObjPointer(L, lua_upvalueindex(1));
|
||||||
|
|
||||||
// Check trace level
|
// Check trace level
|
||||||
if (lua_isnumber(L, 1)) {
|
if (lua_type(L, 1) == LUA_TNUMBER) {
|
||||||
if (lua_tointeger(L, 1) > ps->GetTraceLevel())
|
if (lua_tointeger(L, 1) > ps->GetTraceLevel())
|
||||||
return 0;
|
return 0;
|
||||||
// remove trace level
|
// remove trace level
|
||||||
|
Loading…
x
Reference in New Issue
Block a user