diff --git a/modules/corelib/util.lua b/modules/corelib/util.lua index a2ff02b1..0691fc88 100644 --- a/modules/corelib/util.lua +++ b/modules/corelib/util.lua @@ -313,7 +313,7 @@ function signalcall(param, ...) perror(ret) end end - elseif func ~= nil then + elseif param ~= nil then error('attempt to call a non function value') end return false