mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
Match MxTickleManager::Tickle (#609)
This commit is contained in:
parent
ec29f2633d
commit
ba8744ef8f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue