[Project64] In CSystemEvents::QueueEvent set m_bDoSomething after adding to the queue

This commit is contained in:
zilmar 2016-06-04 18:23:18 +10:00
parent 01010057b5
commit e90d65caaa
1 changed files with 1 additions and 2 deletions

View File

@ -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()