fix bug when callArray gets called with nil.
This commit is contained in:
parent
4f3a554a0c
commit
16d55d603d
@ -103,8 +103,10 @@
|
||||
if type(funcs) == "function" then
|
||||
funcs = funcs(...)
|
||||
end
|
||||
for i = 1, #funcs do
|
||||
funcs[i](...)
|
||||
if funcs then
|
||||
for i = 1, #funcs do
|
||||
funcs[i](...)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user