fixed voronoi crash on clearmemory -- might need better fix

This commit is contained in:
Zeno Rogue 2023-09-14 17:46:11 +02:00
parent 4aa707f197
commit 1d4dac0a50
1 changed files with 1 additions and 1 deletions

View File

@ -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<heptagon*> ((cdata_or_heptagon*) at->cdata);
if(h) {
if(h->alt != at) { DEBB(DF_MEMORY | DF_ERROR, ("alt error :: h->alt = ", h->alt, " expected ", at)); }