Commit f938a451 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

atmo: fix invalid delete

parent 3618f408
......@@ -63,7 +63,7 @@ CAtmoConfig::~CAtmoConfig() {
{
for(int zone=0; zone<m_AtmoZoneDefCount; zone++)
delete m_ZoneDefinitions[zone];
delete m_ZoneDefinitions;
delete[] m_ZoneDefinitions;
m_ZoneDefinitions = NULL;
}
......@@ -392,7 +392,7 @@ void CAtmoConfig::UpdateZoneDefinitionCount()
{
for(int zone=0; zone<m_AtmoZoneDefCount; zone++)
delete m_ZoneDefinitions[zone];
delete m_ZoneDefinitions;
delete[] m_ZoneDefinitions;
m_ZoneDefinitions = NULL;
}
m_AtmoZoneDefCount = getZoneCount();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment