From f52abc1a62f60afc6eb461a277f38f1cced99f7a Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Thu, 28 May 2015 10:51:24 -0700 Subject: [PATCH] When replacing packed_path1/2, also need to replace distance1/2 to properly track. --- routing_algorithms/shortest_path.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routing_algorithms/shortest_path.hpp b/routing_algorithms/shortest_path.hpp index 3dedc2b76..9e6b89045 100644 --- a/routing_algorithms/shortest_path.hpp +++ b/routing_algorithms/shortest_path.hpp @@ -272,11 +272,13 @@ class ShortestPathRouting final if (start_id_of_leg1 != last_id_of_packed_legs1) { packed_legs1 = packed_legs2; + distance1 = distance2; BOOST_ASSERT(start_id_of_leg1 == temporary_packed_leg1.front()); } else if (start_id_of_leg2 != last_id_of_packed_legs2) { packed_legs2 = packed_legs1; + distance2 = distance1; BOOST_ASSERT(start_id_of_leg2 == temporary_packed_leg2.front()); } }