From d999a47600dc212935de7f592e2e004c4003c571 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 26 May 2014 11:47:01 +0200 Subject: [PATCH] partially fixes #1034 --- RoutingAlgorithms/ShortestPathRouting.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RoutingAlgorithms/ShortestPathRouting.h b/RoutingAlgorithms/ShortestPathRouting.h index f51d64235..e4e0cd098 100644 --- a/RoutingAlgorithms/ShortestPathRouting.h +++ b/RoutingAlgorithms/ShortestPathRouting.h @@ -176,6 +176,9 @@ template class ShortestPathRouting : public BasicRoutingInte raw_route_data.alternative_path_length = INVALID_EDGE_WEIGHT; return; } + + search_from_1st_node = true; + search_from_2nd_node = true; if (SPECIAL_NODEID == middle1) { search_from_1st_node = false; @@ -244,7 +247,7 @@ template class ShortestPathRouting : public BasicRoutingInte } } - // remove one path if both legs end at the same segment + // remove the shorter path if both legs end at the same segment if (0 < current_leg) { const NodeID start_id_of_leg1 = temporary_packed_leg1.front();