From 40355b5cb9c5f2fdb14f641b0b888af876499b30 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 17 Aug 2018 21:43:29 +0200 Subject: [PATCH] cdata clear in binarytiling and syntetic --- heptagon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/heptagon.cpp b/heptagon.cpp index 8ef261cf..a68902e1 100644 --- a/heptagon.cpp +++ b/heptagon.cpp @@ -74,13 +74,14 @@ heptagon *buildHeptagon(heptagon *parent, int d, hstate s, int pard = 0, int fix h->spintable = 0; h->move[pard] = parent; tsetspin(h->spintable, pard, d); parent->move[d] = h; tsetspin(parent->spintable, d, pard); + h->cdata = NULL; if(binarytiling || syntetic) return h; if(parent->c7) { if(irr::on) irr::link_next(parent, d); else h->c7 = newCell(S7, h); - h->rval0 = h->rval1 = 0; h->cdata = NULL; + h->rval0 = h->rval1 = 0; h->emeraldval = emerald_heptagon(parent->emeraldval, d); h->zebraval = zebra_heptagon(parent->zebraval, d); h->fieldval = currfp.connections[fieldpattern::btspin(parent->fieldval, d)];