core: Recompute next tick time of timers when they are reset

This commit is contained in:
TÖRÖK Attila 2024-08-20 00:00:45 +02:00 committed by Nathan Adams
parent 6d577f50e4
commit 1b17cbb9b9
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@ impl<'gc> Timers<'gc> {
if let Some(mut timer) = timer {
self.remove(id);
timer.interval = interval;
timer.tick_time = self.cur_time + interval;
self.timers.push(timer);
} else {
panic!("Changing delay of non-existent timer");