Fix deprecated function call

This commit is contained in:
David 2023-09-10 19:24:11 +02:00
parent bedcb48355
commit 534298daeb

View File

@ -68,7 +68,7 @@ local function updateAfterClock(self, dt) -- returns true if expired
self.running = self.running + dt self.running = self.running + dt
if self.running >= self.time then if self.running >= self.time then
self.callback(unpack(self.args)) self.callback(table.unpack(self.args))
return true return true
end end
return false return false
@ -80,7 +80,7 @@ local function updateEveryClock(self, dt)
self.running = self.running + dt self.running = self.running + dt
while self.running >= self.time do while self.running >= self.time do
self.callback(unpack(self.args)) self.callback(table.unpack(self.args))
self.running = self.running - self.time self.running = self.running - self.time
end end
return false return false