From b94cbc7bd84426cb2302d6b093cf44c82f4307c2 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Mon, 26 Feb 2024 13:32:12 -0500 Subject: [PATCH] Use const_iterator --- LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp index ea052153..10cffd9c 100644 --- a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp @@ -264,13 +264,13 @@ LegoBool LegoAnimPresenter::FUN_100698b0(const CompoundObject& p_und1, const Leg } if (str != NULL && *str != '\0' && p_und1.size() > 0) { - for (CompoundObject::iterator it = p_und1.begin(); it != p_und1.end(); it++) { + for (CompoundObject::const_iterator it = p_und1.begin(); it != p_und1.end(); it++) { LegoROI* roi = (LegoROI*) *it; const char* name = roi->GetName(); if (name != NULL) { if (!strcmpi(name, str)) { - m_unk0x70->Append(((LegoROI*) *it)); + m_unk0x70->Append(roi); result = TRUE; break; }