Add null check for lua timer constructor

This commit is contained in:
Lwmte 2023-07-04 20:20:01 +02:00
parent 8e171373ce
commit 6b7ed8ac89

View file

@ -125,7 +125,10 @@ Timer = {
else
t.remainingTime = t.remainingTime + t.totalTime
end
t.func(table.unpack(t.funcArgs))
if (t.func ~= nil) then
t.func(table.unpack(t.funcArgs))
end
end
end