From 0fd05e5a4d284fbd41f58b1334293a2c666c27a3 Mon Sep 17 00:00:00 2001 From: Misha <106913236+MishaProductions@users.noreply.github.com> Date: Mon, 25 Dec 2023 20:10:42 -0500 Subject: [PATCH] match MxStreamController::RemoveSubscriber --- LEGO1/mxstreamcontroller.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/LEGO1/mxstreamcontroller.cpp b/LEGO1/mxstreamcontroller.cpp index ecd410c7..978f4e44 100644 --- a/LEGO1/mxstreamcontroller.cpp +++ b/LEGO1/mxstreamcontroller.cpp @@ -87,11 +87,7 @@ void MxStreamController::AddSubscriber(MxDSSubscriber* p_subscriber) // FUNCTION: LEGO1 0x100c1620 void MxStreamController::RemoveSubscriber(MxDSSubscriber* p_subscriber) { - for (MxStreamListMxDSSubscriber::iterator it = m_subscriberList.begin(); it != m_subscriberList.end(); it++) { - if (*it == p_subscriber) { - m_subscriberList.erase(it); - } - } + m_subscriberList.remove(p_subscriber); } // FUNCTION: LEGO1 0x100c1690