This commit is contained in:
Daniel J. Hofmann 2016-08-05 14:50:26 +02:00
parent 5bef5dcb04
commit b161e10b73

View File

@ -289,11 +289,13 @@ LaneDataVector handleNoneValueAtSimpleTurn(LaneDataVector lane_data,
//
if (connection_count + 1 != lane_data.size())
{
goto these_intersections_are_clearly_broken_at_the_moment;
// skip broken intersections
}
else
{
lane_data = mergeNoneTag(none_index, std::move(lane_data));
}
}
// we have to rename and possibly augment existing ones. The pure count remains the
// same.
else
@ -301,8 +303,6 @@ LaneDataVector handleNoneValueAtSimpleTurn(LaneDataVector lane_data,
lane_data = handleRenamingSituations(none_index, std::move(lane_data), intersection);
}
these_intersections_are_clearly_broken_at_the_moment:
// finally make sure we are still sorted
std::sort(lane_data.begin(), lane_data.end());
return lane_data;