From b41d56d3054e4196070b662b51d002320c8bab1c Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 31 Jul 2021 13:25:03 +1000 Subject: [PATCH] TimingEvent: Fix event list getting unsorted on Delay --- src/core/timing_event.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/timing_event.cpp b/src/core/timing_event.cpp index dad7a4748..b83e82839 100644 --- a/src/core/timing_event.cpp +++ b/src/core/timing_event.cpp @@ -401,6 +401,9 @@ void TimingEvent::Delay(TickCount ticks) } m_downcount += ticks; + + DebugAssert(TimingEvents::s_current_event != this); + TimingEvents::SortEvent(this); } void TimingEvent::Schedule(TickCount ticks)