diff --git a/src/core/timing_event.cpp b/src/core/timing_event.cpp index 6848d2f6c..dad7a4748 100644 --- a/src/core/timing_event.cpp +++ b/src/core/timing_event.cpp @@ -455,7 +455,7 @@ void TimingEvent::InvokeEarly(bool force /* = false */) const TickCount pending_ticks = CPU::GetPendingTicks(); const TickCount ticks_to_execute = m_time_since_last_run + pending_ticks; - if (!force && ticks_to_execute < m_period) + if ((!force && ticks_to_execute < m_period) || ticks_to_execute <= 0) return; m_downcount = pending_ticks + m_interval;