fix bug when callArray gets called with nil.

This commit is contained in:
Tom van Dijck 2016-04-05 09:12:00 -07:00
parent 4f3a554a0c
commit 16d55d603d

View File

@ -103,10 +103,12 @@
if type(funcs) == "function" then
funcs = funcs(...)
end
if funcs then
for i = 1, #funcs do
funcs[i](...)
end
end
end
-- TODO: THIS IMPLEMENTATION IS GOING AWAY