From 1d4dac0a50e6d99b3acce661601d09a8db831a23 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 14 Sep 2023 17:46:11 +0200 Subject: [PATCH] fixed voronoi crash on clearmemory -- might need better fix --- cell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cell.cpp b/cell.cpp index 8e7b162f..993bcbf4 100644 --- a/cell.cpp +++ b/cell.cpp @@ -671,7 +671,7 @@ EX void clearfrom(heptagon *at) { // if(q.size() > maxq) maxq = q.size(); q.pop(); DEBB(DF_MEMORY, ("from %p", at)); - if(!at->c7) { + if(!at->c7 && !ls::voronoi_structure()) { heptagon *h = dynamic_cast ((cdata_or_heptagon*) at->cdata); if(h) { if(h->alt != at) { DEBB(DF_MEMORY | DF_ERROR, ("alt error :: h->alt = ", h->alt, " expected ", at)); }