Fixed a bug in the trigger module

It would return 2 self references upon connection instead of 1
This commit is contained in:
Ryan 2017-06-09 14:16:39 -04:00
parent 38b6ba7535
commit 86db39ae7f

View File

@ -4,7 +4,7 @@ function multi:newTrigger(func)
c.Type='trigger' c.Type='trigger'
c.trigfunc=func or function() end c.trigfunc=func or function() end
function c:Fire(...) function c:Fire(...)
self:trigfunc(self,...) self:trigfunc(...)
end end
function c:tofile(path) function c:tofile(path)
local m=bin.new() local m=bin.new()