From fe1a5c5a03b3e6a80073d0a5e48235275956e443 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 17 Aug 2018 21:37:33 +0200 Subject: [PATCH] bugfix in memory clear --- cell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cell.cpp b/cell.cpp index 85f9ba7e..2883af35 100644 --- a/cell.cpp +++ b/cell.cpp @@ -981,7 +981,7 @@ template void subcell(cell *c, const T& t) { subcell(c2, t); } } - else if(!nonbitrunc) + else if(!nonbitrunc && !syntetic && !binarytiling) forCellEx(c2, c) t(c2); t(c); } @@ -992,7 +992,7 @@ void clearHexes(heptagon *at) { at->cdata = NULL; } if(irr::on) irr::clear_links(at); - else if(at->c7 && !binarytiling) subcell(at->c7, clearcell); + else if(at->c7) subcell(at->c7, clearcell); } void unlink_cdata(heptagon *h) {