mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Add null check for lua timer constructor
This commit is contained in:
parent
8e171373ce
commit
6b7ed8ac89
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue