diff --git a/src/game/editor/auto_map.cpp b/src/game/editor/auto_map.cpp index adef6723c..08f9e5ef2 100644 --- a/src/game/editor/auto_map.cpp +++ b/src/game/editor/auto_map.cpp @@ -537,7 +537,7 @@ void CAutoMapper::Proceed(CLayerTiles *pLayer, int ConfigID, int Seed, int SeedO } // clean-up - if(pRun->m_AutomapCopy) + if(pRun->m_AutomapCopy && pReadLayer != pLayer) delete pReadLayer; } }