From f243b61d724b050a35754543ac80438015244555 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 30 Nov 2019 19:28:28 +0100 Subject: [PATCH] fixed a crash when changing to product --- cell.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cell.cpp b/cell.cpp index 44578526..fdee21a7 100644 --- a/cell.cpp +++ b/cell.cpp @@ -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();