Skip to content

Commit d030aa1

Browse files
committed
Fix level index
1 parent 6ea900a commit d030aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Handlers/cbRunR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ SEXP Dollar(std::string name) {
417417
levels[0] = "None";
418418
for (const Model::NodeTypeFlag& it2 : solver->lattice->model->nodetypeflags) {
419419
if (it2.group_id == it.id) {
420-
int idx = 1 + (it2.flag >> it.shift);
420+
int idx = it2.flag >> it.shift;
421421
if (idx < levels.size()) levels[idx] = it2.name;
422422
}
423423
}

0 commit comments

Comments
 (0)