Further cleanup

This commit is contained in:
jonschz 2025-07-13 09:56:26 +02:00
parent 61c7a42a6f
commit ebc9de60ff

View File

@ -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++;
} }