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