fixed a crash when 'drawing underlying tree' in crystal3

This commit is contained in:
Zeno Rogue 2020-05-29 01:58:15 +02:00
parent c6f2391033
commit aa2cf6dbf5
1 changed files with 1 additions and 0 deletions

View File

@ -626,6 +626,7 @@ struct hrmap_crystal : hrmap_standard {
map<int, transmatrix> adjs;
transmatrix adj(heptagon *h, int d) override {
if(!crystal3()) return adj(h->c7, d);
auto co = hcoords[h];
int id = 0;
for(int a=0; a<S7/2; a++) id = (2*id) + ((co[a]>>1) & 1);