Match MxTickleManager::Tickle (#609)

This commit is contained in:
Christian Semmler 2024-03-01 12:46:07 -05:00 committed by GitHub
parent ec29f2633d
commit ba8744ef8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,12 +33,12 @@ MxTickleManager::~MxTickleManager()
MxResult MxTickleManager::Tickle() MxResult MxTickleManager::Tickle()
{ {
MxTime time = Timer()->GetTime(); 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; MxTickleClient* client = *it;
// TODO: Match. if ((MxBool) client->GetFlags() & TICKLE_MANAGER_FLAG_DESTROY) {
if ((MxU8) client->GetFlags() & TICKLE_MANAGER_FLAG_DESTROY) {
m_clients.erase(it++); m_clients.erase(it++);
delete client; delete client;
} }