diff --git a/src/atom.cpp b/src/atom.cpp index 0e63fc3fdf..9a2bc75f06 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -1910,7 +1910,7 @@ void Atom::add_molecule_atom(Molecule *onemol, int iatom, onemol->avec_body->set_quat(ilocal,onemol->quat_external); } - if (molecular != 1) return; + if (molecular != Atom::MOLECULAR) return; // add bond topology info // for molecular atom styles, but not atom style template