mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-28 07:15:41 -04:00
TimingEvent: Fix crash when invalid save state loaded
This commit is contained in:
parent
2c36750a0e
commit
976d4bae79
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user