[Project64] In CSystemEvents::QueueEvent set m_bDoSomething after adding to the queue
This commit is contained in:
parent
01010057b5
commit
e90d65caaa
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue