From 4ef590453c965690f78202d8c656f2d903e0ed01 Mon Sep 17 00:00:00 2001 From: Brendan Dougherty Date: Sat, 15 Jul 2023 16:04:23 -0500 Subject: [PATCH] Match MxNotificationManager::Register. --- LEGO1/mxnotificationmanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LEGO1/mxnotificationmanager.cpp b/LEGO1/mxnotificationmanager.cpp index 3ed34f2f..51cac5ef 100644 --- a/LEGO1/mxnotificationmanager.cpp +++ b/LEGO1/mxnotificationmanager.cpp @@ -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