From ba8744ef8fecb3924e92a981e73fe8bcdf41222a Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 1 Mar 2024 12:46:07 -0500 Subject: [PATCH] Match MxTickleManager::Tickle (#609) --- LEGO1/omni/src/common/mxticklemanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/omni/src/common/mxticklemanager.cpp b/LEGO1/omni/src/common/mxticklemanager.cpp index e8b0d410..8ce0b492 100644 --- a/LEGO1/omni/src/common/mxticklemanager.cpp +++ b/LEGO1/omni/src/common/mxticklemanager.cpp @@ -33,12 +33,12 @@ MxTickleManager::~MxTickleManager() MxResult MxTickleManager::Tickle() { MxTime time = Timer()->GetTime(); + MxTickleClientPtrList::iterator it; - for (MxTickleClientPtrList::iterator it = m_clients.begin(); it != m_clients.end();) { + for (it = m_clients.begin(); !(it == m_clients.end());) { MxTickleClient* client = *it; - // TODO: Match. - if ((MxU8) client->GetFlags() & TICKLE_MANAGER_FLAG_DESTROY) { + if ((MxBool) client->GetFlags() & TICKLE_MANAGER_FLAG_DESTROY) { m_clients.erase(it++); delete client; }