mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 14:51:15 +00:00
Match MxNotificationManager::Register.
This commit is contained in:
parent
1f70a724e0
commit
4ef590453c
@ -92,12 +92,11 @@ void MxNotificationManager::Register(MxCore *p_listener)
|
||||
{
|
||||
MxAutoLocker lock(&m_lock);
|
||||
|
||||
MxU32 listenerId = p_listener->GetId();
|
||||
MxIdList::iterator it = find(m_listenerIds.begin(), m_listenerIds.end(), listenerId);
|
||||
MxIdList::iterator it = find(m_listenerIds.begin(), m_listenerIds.end(), p_listener->GetId());
|
||||
if (it != m_listenerIds.end())
|
||||
return;
|
||||
|
||||
m_listenerIds.push_back(listenerId);
|
||||
m_listenerIds.push_back(p_listener->GetId());
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100acdf0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user