Fix for :during() call without an after function

This commit is contained in:
Kingdaro 2016-05-23 19:03:58 -04:00
parent 08354c472d
commit 6cf4a54d9d

View File

@ -64,7 +64,7 @@ function Timer:update(dt)
end
function Timer:during(delay, during, after)
local handle = { time = 0, during = during, after = after, limit = delay, count = 1 }
local handle = { time = 0, during = during, after = after or _nothing_, limit = delay, count = 1 }
self.functions[handle] = true
return handle
end