TimingEvent: Fix crash when invalid save state loaded

This commit is contained in:
Connor McLaughlin 2020-09-06 17:47:49 +10:00
parent 2c36750a0e
commit 976d4bae79
1 changed files with 2 additions and 1 deletions

View File

@ -207,7 +207,8 @@ static void RemoveActiveEvent(TimingEvent* event)
else else
{ {
s_active_events_head = event->next; s_active_events_head = event->next;
UpdateCPUDowncount(); if (s_active_events_head)
UpdateCPUDowncount();
} }
event->prev = nullptr; event->prev = nullptr;