1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix crash on map destroying

This commit is contained in:
nordsoft
2022-12-03 20:47:03 +04:00
parent fc6026969f
commit 2f2c980a0c

View File

@@ -256,6 +256,8 @@ CMap::CMap()
CMap::~CMap()
{
getEditManager()->getUndoManager().clearAll();
if(terrain)
{
for(int z = 0; z < levels(); z++)