mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user