fixed the crash with four... geometries (appeared on OSX)

This commit is contained in:
Zeno Rogue 2018-05-03 13:14:21 +02:00
parent 09adfbdc45
commit 86077105b1
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ heptagon *buildHeptagon(heptagon *parent, int d, hstate s, int pard = 0, int fix
if(h1->distance <= h->move[0]->distance)
h->distance = h->move[0]->distance+1;
}
if(h->spin(0) == S7-1)
if(h->spin(0) == S7-1 && h->move[0]->distance != 0)
h->distance = min(
h->move[0]->move[0]->distance + 2,
createStep(h, S7-1)->distance + 1