diff --git a/src/change_box.cpp b/src/change_box.cpp index 1bd3fe733f..a214a56969 100644 --- a/src/change_box.cpp +++ b/src/change_box.cpp @@ -176,7 +176,7 @@ void ChangeBox::command(int narg, char **arg) int move_atoms = 0; for (int m = 0; m < nops; m++) { - if (ops[m].style != ORTHO || ops[m].style != TRICLINIC) move_atoms = 1; + if (ops[m].style != ORTHO && ops[m].style != TRICLINIC) move_atoms = 1; } // error if moving atoms and there is stored per-atom restart state