diff --git a/src/engine/routing_algorithms/alternative_path_mld.cpp b/src/engine/routing_algorithms/alternative_path_mld.cpp index f97ea96e2..355d468ad 100644 --- a/src/engine/routing_algorithms/alternative_path_mld.cpp +++ b/src/engine/routing_algorithms/alternative_path_mld.cpp @@ -402,7 +402,7 @@ template RandIt filterUnpackedPathsBySharing(RandIt first, Ran std::unordered_set edges; edges.reserve(size * shortest_path.edges.size() * (1. + kAtMostLongerBy)); - edges.insert(begin(shortest_path.edges), begin(shortest_path.edges)); + edges.insert(begin(shortest_path.edges), end(shortest_path.edges)); const auto over_sharing_limit = [&](const auto &unpacked) {