From f50dbe298a6c70c4326ca2339a0a7d02a1908d49 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 10 Jul 2014 14:03:20 +0200 Subject: [PATCH] properly initialize variable --- RoutingAlgorithms/AlternativePathRouting.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RoutingAlgorithms/AlternativePathRouting.h b/RoutingAlgorithms/AlternativePathRouting.h index 214a8eb3b..f0053216e 100644 --- a/RoutingAlgorithms/AlternativePathRouting.h +++ b/RoutingAlgorithms/AlternativePathRouting.h @@ -98,7 +98,7 @@ template class AlternativeRouting : private BasicRoutingInte int upper_bound_to_shortest_path_distance = INVALID_EDGE_WEIGHT; NodeID middle_node = SPECIAL_NODEID; - EdgeWeight min_edge_offset = std::min(min_edge_offset, -phantom_node_pair.source_phantom.GetForwardWeightPlusOffset()); + EdgeWeight min_edge_offset = std::min(0, -phantom_node_pair.source_phantom.GetForwardWeightPlusOffset()); min_edge_offset = std::min(min_edge_offset, -phantom_node_pair.source_phantom.GetReverseWeightPlusOffset()); if (phantom_node_pair.source_phantom.forward_node_id != SPECIAL_NODEID)