From 1a9a514468b834bc5f06fc81a0b6d03d0aa1ac21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Tue, 5 Nov 2024 17:47:59 +0100 Subject: [PATCH] fix fastest direct dominance check --- src/endpoints/routing.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/routing.cc b/src/endpoints/routing.cc index b2a07fb9f..222fc6654 100644 --- a/src/endpoints/routing.cc +++ b/src/endpoints/routing.cc @@ -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(); };