From a6b5ef38facb715917fb556e7dfec33313167b9c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 19 Sep 2026 19:35:02 +0200 Subject: [PATCH] fixed a potential crash in infinite-order tilings --- inforder.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inforder.cpp b/inforder.cpp index a32094d2..ca5e47ec 100644 --- a/inforder.cpp +++ b/inforder.cpp @@ -30,7 +30,10 @@ EX namespace inforder { h1->s = hsA; h1->distance = h->distance + (par ? -1 : 1); - h1->c7 = newCell(deg, h1); + if(h->c7) + h1->c7 = newCell(deg, h1); + else + h1->c7 = nullptr; return h1; }