diff --git a/src/api/sorting/group_sort.cpp b/src/api/sorting/group_sort.cpp index 192caab0..b72b5934 100644 --- a/src/api/sorting/group_sort.cpp +++ b/src/api/sorting/group_sort.cpp @@ -206,7 +206,9 @@ GetTransitiveAfterGroups(const std::vector& masterlistGroups, // Create a color map. std::vector colorVec(boost::num_vertices(graph)); auto colorMap = boost::make_iterator_property_map( - colorVec.begin(), boost::get(boost::vertex_index, graph), colorVec[0]); + colorVec.begin(), + boost::get(boost::vertex_index, graph), + colorVec.at(0)); boost::depth_first_visit(graph, vertex, afterGroupsVisitor, colorMap); transitiveAfterGroups[graph[vertex]] = visitedGroups;