mirror of
https://github.com/vrld/hump.git
synced 2024-10-15 09:04:18 +00:00
Fix for :during() call without an after function
This commit is contained in:
parent
08354c472d
commit
6cf4a54d9d
@ -64,7 +64,7 @@ function Timer:update(dt)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Timer:during(delay, during, after)
|
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
|
self.functions[handle] = true
|
||||||
return handle
|
return handle
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user