Remove overeager selection index group check
[alexxy/gromacs.git] / src / gromacs / selection / selectioncollection.cpp
index 09f24e03c5faf90968ef74b3c38fd6c1801f57a8..400e7d8d3b8f9444f5387e85347da19168202fe9 100644 (file)
@@ -447,7 +447,8 @@ void SelectionCollection::Impl::resolveExternalGroups(
     while (child)
     {
         resolveExternalGroups(child, errors);
-        child = child->next;
+        root->flags |= (child->flags & SEL_UNSORTED);
+        child        = child->next;
     }
 }