1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 11:54:48 +00:00

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

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));