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:
parent
4aa707f197
commit
1d4dac0a50
2
cell.cpp
2
cell.cpp
@ -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)); }
|
||||||
|
Loading…
Reference in New Issue
Block a user