fix exit when no map was created

This commit is contained in:
Tim Felgentreff 2022-05-30 22:27:14 +02:00
parent ad332c9a87
commit 2541939ca2

View file

@ -363,7 +363,9 @@ void CMap::Clean(const bool isHardClean /* = false*/)
this->Info.Clear();
this->Fields = NULL;
this->NoFogOfWar = false;
this->Tileset->clear();
if (Tileset) {
this->Tileset->clear();
}
this->TileModelsFileName.clear();
CGraphic::Free(this->TileGraphic);
this->TileGraphic = NULL;