1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

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

View File

@ -671,7 +671,7 @@ EX void clearfrom(heptagon *at) {
// if(q.size() > maxq) maxq = q.size(); // if(q.size() > maxq) maxq = q.size();
q.pop(); q.pop();
DEBB(DF_MEMORY, ("from %p", at)); 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); heptagon *h = dynamic_cast<heptagon*> ((cdata_or_heptagon*) at->cdata);
if(h) { if(h) {
if(h->alt != at) { DEBB(DF_MEMORY | DF_ERROR, ("alt error :: h->alt = ", h->alt, " expected ", at)); } if(h->alt != at) { DEBB(DF_MEMORY | DF_ERROR, ("alt error :: h->alt = ", h->alt, " expected ", at)); }