From 4e0656da887f0013d2fc416ac8bdb72ff33a3db2 Mon Sep 17 00:00:00 2001 From: jonschz Date: Sun, 13 Jul 2025 08:08:14 +0200 Subject: [PATCH] 87 %, down to entropy --- LEGO1/lego/legoomni/src/worlds/act3.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/worlds/act3.cpp b/LEGO1/lego/legoomni/src/worlds/act3.cpp index 33a7b34c..6f53c1bc 100644 --- a/LEGO1/lego/legoomni/src/worlds/act3.cpp +++ b/LEGO1/lego/legoomni/src/worlds/act3.cpp @@ -185,7 +185,8 @@ void Act3List::FUN_100720d0(MxU32 p_objectId) Act3List::iterator it; - // TODO: This extra iterator is still kind of dodgy + // This iterator appears to be unnecessary - maybe left in by accident. + // Removing it decreases the match. Act3List::iterator it3; @@ -202,7 +203,7 @@ void Act3List::FUN_100720d0(MxU32 p_objectId) for (it = begin(); it != end(); it++) { Act3ListElement& current = *it; - if (current.m_hasStarted && current.m_objectId == p_objectId) { + if (current.m_hasStarted && (*it).m_objectId == p_objectId) { erase(it); @@ -222,7 +223,7 @@ void Act3List::FUN_100720d0(MxU32 p_objectId) if (removed && size() > 0) { // TODO: Something is wrong about these first two lines - // LINE: LEGO1 0x1007215d + // LINE: LEGO1 0x1007215f it = begin(); it3 = it;