Open sysl-dev opened 5 years ago
This is the patch I'm using:
function Registry:emit(s, ...)
if type(self[s]) == "function" then
print("HUMP Signal:", "This would have crashed hump signal.")
else
for f in pairs(self[s]) do
f(...)
end
end
signal.emit("clear")
Error: library/hump/signal.lua:42: bad argument #1 to 'pairs' (table expected, got function)
Registry:emit does not check if
self[s]
is a function before trying to read it like a table.