Fix implementation error for manually managed timers
This commit is contained in:
@@ -59,8 +59,10 @@ return {
|
|||||||
update = function(delta)
|
update = function(delta)
|
||||||
local expired = {}
|
local expired = {}
|
||||||
for timer in pairs(timers) do
|
for timer in pairs(timers) do
|
||||||
if timer:update(delta) then
|
if not timer.manual then
|
||||||
expired[timer] = true
|
if timer:update(delta) then
|
||||||
|
expired[timer] = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
for timer in pairs(expired) do
|
for timer in pairs(expired) do
|
||||||
|
|||||||
Reference in New Issue
Block a user