actual fix

master
Tycho 2014-01-03 08:49:14 -08:00
parent 0e8bb3bf41
commit 14ec68d8d3
1 changed files with 9 additions and 2 deletions

View File

@ -134,8 +134,15 @@ public:
bool Remove(ItemType item) bool Remove(ItemType item)
{ {
cCSLock Lock(m_CS); cCSLock Lock(m_CS);
m_evtRemoved.Set(); for (iterator itr = m_contents.begin(); itr != m_contents.end(); ++itr)
return m_contents.remove(item); {
if((*itr) == a_item) {
m_contents.erase(itr);
m_evtRemoved.Set();
return true;
}
}
return false;
} }
private: private: