From 7a523713c7e0cc7c4822419ba41d3b7191abf49c Mon Sep 17 00:00:00 2001 From: Moritz Kobitzsch Date: Mon, 5 Sep 2016 15:06:56 +0200 Subject: [PATCH] remove broken assertion --- src/engine/guidance/post_processing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/guidance/post_processing.cpp b/src/engine/guidance/post_processing.cpp index 9853080d7..8ba06e6ba 100644 --- a/src/engine/guidance/post_processing.cpp +++ b/src/engine/guidance/post_processing.cpp @@ -1179,7 +1179,7 @@ std::vector buildIntersections(std::vector steps) // previous instruction. if (instruction.type == TurnType::EndOfRoad) { - BOOST_ASSERT(step_index > 0 && next_step_index < steps.size()); + BOOST_ASSERT(step_index > 0); const auto &previous_step = steps[last_valid_instruction]; if (previous_step.intersections.size() < MIN_END_OF_ROAD_INTERSECTIONS) step.maneuver.instruction.type = TurnType::Turn;