Match MxNotificationManager::Register.

This commit is contained in:
Brendan Dougherty 2023-07-15 16:04:23 -05:00
parent 1f70a724e0
commit 4ef590453c

View File

@ -92,12 +92,11 @@ void MxNotificationManager::Register(MxCore *p_listener)
{ {
MxAutoLocker lock(&m_lock); MxAutoLocker lock(&m_lock);
MxU32 listenerId = p_listener->GetId(); MxIdList::iterator it = find(m_listenerIds.begin(), m_listenerIds.end(), p_listener->GetId());
MxIdList::iterator it = find(m_listenerIds.begin(), m_listenerIds.end(), listenerId);
if (it != m_listenerIds.end()) if (it != m_listenerIds.end())
return; return;
m_listenerIds.push_back(listenerId); m_listenerIds.push_back(p_listener->GetId());
} }
// OFFSET: LEGO1 0x100acdf0 // OFFSET: LEGO1 0x100acdf0