Skip to content

Commit

Permalink
remove broken assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Kobitzsch committed Sep 5, 2016
1 parent f726589 commit 7a52371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/guidance/post_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ std::vector<RouteStep> buildIntersections(std::vector<RouteStep> 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;
Expand Down

0 comments on commit 7a52371

Please sign in to comment.