From 8ad98d12a8e720270722848a3236493012129c91 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Tue, 14 May 2024 08:02:22 -0400 Subject: [PATCH] Write COMPAT_MODE macro differently --- LEGO1/lego/sources/misc/legocontainer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/sources/misc/legocontainer.h b/LEGO1/lego/sources/misc/legocontainer.h index 0af4322e..7ddad1de 100644 --- a/LEGO1/lego/sources/misc/legocontainer.h +++ b/LEGO1/lego/sources/misc/legocontainer.h @@ -48,10 +48,11 @@ class LegoContainer { void Clear() { #ifdef COMPAT_MODE - for (typename LegoContainerInfo::iterator it = m_map.begin(); it != m_map.end(); it++) { + for (typename LegoContainerInfo::iterator it = m_map.begin(); it != m_map.end(); it++) #else - for (LegoContainerInfo::iterator it = m_map.begin(); it != m_map.end(); it++) { + for (LegoContainerInfo::iterator it = m_map.begin(); it != m_map.end(); it++) #endif + { delete (*it).second; } }