fixed clearfrom if a heptagon is adjacent to itself

This commit is contained in:
Zeno Rogue 2020-11-01 11:30:03 +01:00
parent a52d103334
commit 61c3939cb7
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ EX void clearfrom(heptagon *at) {
}
int edges = at->degree();
if(bt::in() && WDIM == 2) edges = at->c7->type;
for(int i=0; i<edges; i++) if(at->move(i)) {
for(int i=0; i<edges; i++) if(at->move(i) && at->move(i) != at) {
if(at->move(i)->alt != &deletion_marker)
q.push(at->move(i));
unlink_cdata(at->move(i));