diff --git a/include/engine/routing_algorithms/routing_base.hpp b/include/engine/routing_algorithms/routing_base.hpp index 92bbf1f60..358547858 100644 --- a/include/engine/routing_algorithms/routing_base.hpp +++ b/include/engine/routing_algorithms/routing_base.hpp @@ -324,6 +324,7 @@ template class BasicRoutingInterface extractor::guidance::TurnInstruction::NO_TURN(), travel_mode, INVALID_EXIT_NR}); } + BOOST_ASSERT(unpacked_path.size() > 0); unpacked_path.back().turn_instruction = turn_instruction; unpacked_path.back().duration_until_turn += (ed.distance - total_weight); diff --git a/src/engine/guidance/post_processing.cpp b/src/engine/guidance/post_processing.cpp index 698cc33db..402666f9f 100644 --- a/src/engine/guidance/post_processing.cpp +++ b/src/engine/guidance/post_processing.cpp @@ -30,7 +30,6 @@ PathData forwardInto(PathData destination, const PathData &source) { // Merge a turn into a silent turn // Overwrites turn instruction and increases exit NR - destination.duration_until_turn += source.duration_until_turn; destination.exit = source.exit; return destination; } @@ -40,7 +39,6 @@ PathData accumulateInto(PathData destination, const PathData &source) // Merge a turn into a silent turn // Overwrites turn instruction and increases exit NR BOOST_ASSERT(canMergeTrivially(destination, source)); - destination.duration_until_turn += source.duration_until_turn; destination.exit = source.exit + 1; return destination; }