diff --git a/floorshapes.cpp b/floorshapes.cpp index 3e72829f..ee448299 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -504,9 +504,14 @@ void geometry_information::generate_floorshapes_for(int id, cell *c, int siid, i } if(area < 0) dist = -dist; - int id = arb::id_of(c->master); - auto& sh = ac.shapes[id]; - apeirogonal = arb::in() && sh.apeirogonal; + apeirogonal = false; + int id = 0; + arb::shape *sh = nullptr; + if(arb::in()) { + int id = arb::id_of(c->master); + sh = &ac.shapes[id]; + apeirogonal = sh->apeirogonal; + } for(int j=0; jvertices.back()); continue; } } auto T = gpushxto0(current);