From a0f8a0a7444f675c36c7c4085ac1c630da9505a1 Mon Sep 17 00:00:00 2001 From: jonschz Date: Sat, 12 Jul 2025 22:23:14 +0200 Subject: [PATCH] 58 %, shared variable --- LEGO1/lego/legoomni/src/worlds/act3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LEGO1/lego/legoomni/src/worlds/act3.cpp b/LEGO1/lego/legoomni/src/worlds/act3.cpp index aaf62ae6..e623b57f 100644 --- a/LEGO1/lego/legoomni/src/worlds/act3.cpp +++ b/LEGO1/lego/legoomni/src/worlds/act3.cpp @@ -183,7 +183,7 @@ void Act3List::FUN_100720d0(MxU32 p_objectId) MxU32 removed = FALSE; - + Act3List::iterator it; // LINE: LEGO1 0x100720e6 if (!empty()) { @@ -193,8 +193,8 @@ void Act3List::FUN_100720d0(MxU32 p_objectId) removed = TRUE; } else { - - for (Act3List::iterator it = begin(); it != end(); it++) { + // LINE: LEGO1 0x100720fa + for (it = begin(); it != end(); it++) { if ((*it).m_hasStarted && (*it).m_objectId == p_objectId) { @@ -217,7 +217,7 @@ void Act3List::FUN_100720d0(MxU32 p_objectId) // TODO: Something is wrong about these first two lines // LINE: LEGO1 0x1007215d - Act3List::iterator it = begin(); + it = begin(); Act3ListElement& firstItem = *it++;