From 86077105b12c8187c8ef28c3dbb638db49a71de4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 3 May 2018 13:14:21 +0200 Subject: [PATCH] fixed the crash with four... geometries (appeared on OSX) --- heptagon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heptagon.cpp b/heptagon.cpp index 599db911..304d836b 100644 --- a/heptagon.cpp +++ b/heptagon.cpp @@ -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