Fix check for if the first arg to log is a number

This commit is contained in:
Thomas Goyne 2013-11-27 17:14:19 -08:00
parent 0b1b10fb52
commit 11d1348c2c

View file

@ -142,7 +142,7 @@ namespace Automation4 {
ProgressSink *ps = GetObjPointer(L, lua_upvalueindex(1));
// Check trace level
if (lua_isnumber(L, 1)) {
if (lua_type(L, 1) == LUA_TNUMBER) {
if (lua_tointeger(L, 1) > ps->GetTraceLevel())
return 0;
// remove trace level