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; } }