@bunny67 need to work on this more (removed lua error, thanks @Loaal)

This commit is contained in:
Crum
2018-01-25 14:05:10 -06:00
parent 688b7dcbed
commit feec2011d3
@@ -255,11 +255,11 @@ do
end end
end end
WidgetBase.Fire = function(self,name,argc,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) WidgetBase.Fire = function(self,name,argc,...)
argc = argc or 0 argc = table.getn(arg)
local func = self.events[name] local func = self.events[name]
if func then if func then
local success, ret = safecall(func,argc+3,self,name,argc,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) local success, ret = safecall(func,argc+3,self,name,argc,unpack(arg))
if success then if success then
return ret return ret
end end