mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-15 12:41:15 +00:00
Further cleanup
This commit is contained in:
parent
61c7a42a6f
commit
ebc9de60ff
@ -211,16 +211,16 @@ void Act3List::RemoveByObjectIdOrFirst(MxU32 p_objectId)
|
|||||||
Act3ListElement& firstItem = front();
|
Act3ListElement& firstItem = front();
|
||||||
it++;
|
it++;
|
||||||
|
|
||||||
for (; it != end();) {
|
while (it != end()) {
|
||||||
if ((*it).m_unk0x04 == 1) {
|
if ((*it).m_unk0x04 == 1) {
|
||||||
for (Act3List::iterator it2 = begin(); it2 != it;) {
|
for (Act3List::iterator it2 = begin(); it2 != it; erase(it2++)) {
|
||||||
if ((*it2).m_hasStarted) {
|
if ((*it2).m_hasStarted) {
|
||||||
DeleteActionWrapper();
|
DeleteActionWrapper();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
erase(it2++);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
it++;
|
it++;
|
||||||
unused_iterator++;
|
unused_iterator++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user