From e90d65caaa52a0beb9ec806f3ecec37feea36c59 Mon Sep 17 00:00:00 2001 From: zilmar Date: Sat, 4 Jun 2016 18:23:18 +1000 Subject: [PATCH] [Project64] In CSystemEvents::QueueEvent set m_bDoSomething after adding to the queue --- Source/Project64-core/N64System/Mips/SystemEvents.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Project64-core/N64System/Mips/SystemEvents.cpp b/Source/Project64-core/N64System/Mips/SystemEvents.cpp index 8ac601627..d66131d4a 100644 --- a/Source/Project64-core/N64System/Mips/SystemEvents.cpp +++ b/Source/Project64-core/N64System/Mips/SystemEvents.cpp @@ -26,8 +26,6 @@ CSystemEvents::~CSystemEvents() void CSystemEvents::QueueEvent(SystemEvent action) { - m_bDoSomething = true; - CGuard Guard(m_CS); for (EventList::const_iterator iter = m_Events.begin(); iter != m_Events.end(); iter++) { @@ -37,6 +35,7 @@ void CSystemEvents::QueueEvent(SystemEvent action) } } m_Events.push_back(action); + m_bDoSomething = true; } void CSystemEvents::ExecuteEvents()