Skip to content

Commit

Permalink
fix fastest direct dominance check
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 5, 2024
1 parent 5a61423 commit 1a9a514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/routing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ void remove_slower_than_fastest_direct(n::routing::query& q) {
};
auto const get_min_duration = [&](auto&& x) {
return x.empty() ? kMaxDuration
: utl::max_element(x, [](auto&& a, auto&& b) {
: utl::min_element(x, [](auto&& a, auto&& b) {
return a.duration() < b.duration();
})->duration();
};
Expand Down

0 comments on commit 1a9a514

Please sign in to comment.