fixed a potential bug in generate_floorshapes() -- generate the models up to FULL_EDGE, as S6 could exceed S7

This commit is contained in:
Zeno Rogue 2022-12-08 19:39:12 +01:00
parent 2f2e770d64
commit ababcdfee8
1 changed files with 4 additions and 2 deletions

View File

@ -789,18 +789,20 @@ void geometry_information::generate_floorshapes() {
cell model;
model.master = &modelh;
modelh.c7 = &model;
model.type = modelh.type = S7;
model.type = modelh.type = FULL_EDGE;
auto mmerge1 = [&] (int i, int j) { model.c.setspin(i, j, false); modelh.c.setspin(i, j, false); };
auto mmerge = [&] (int i, int j) { mmerge1(i, j); mmerge1(j, i); };
for(int i=0; i<S7; i++) {
for(int i=0; i<FULL_EDGE; i++) {
model.move(i) = &model;
modelh.move(i) = &modelh;
model.c.setspin(i, i, false);
modelh.c.setspin(i, i, false);
}
model.type = modelh.type = S7;
if(WDIM == 3) ;
#if CAP_IRR