From ebc9de60ff07370bd88fbc67e56c7be2d3e6fd8c Mon Sep 17 00:00:00 2001 From: jonschz Date: Sun, 13 Jul 2025 09:56:26 +0200 Subject: [PATCH] Further cleanup --- LEGO1/lego/legoomni/src/worlds/act3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/worlds/act3.cpp b/LEGO1/lego/legoomni/src/worlds/act3.cpp index dd3850e9..a1b3da12 100644 --- a/LEGO1/lego/legoomni/src/worlds/act3.cpp +++ b/LEGO1/lego/legoomni/src/worlds/act3.cpp @@ -211,16 +211,16 @@ void Act3List::RemoveByObjectIdOrFirst(MxU32 p_objectId) Act3ListElement& firstItem = front(); it++; - for (; it != end();) { + while (it != end()) { 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) { DeleteActionWrapper(); return; } - erase(it2++); } } + it++; unused_iterator++; }