fixed a crash when changing to product

This commit is contained in:
Zeno Rogue 2019-11-30 19:28:28 +01:00
parent 31f6f28012
commit f243b61d72
1 changed files with 1 additions and 0 deletions

View File

@ -1109,6 +1109,7 @@ EX void clearCellMemory() {
if(allmaps[i])
delete allmaps[i];
allmaps.clear();
currentmap = nullptr;
last_cleared = NULL;
saved_distances.clear();
dists_computed.clear();