fix errors introduced in refactor

This commit is contained in:
Moritz Kobitzsch
2016-08-12 17:04:40 +02:00
committed by Patrick Niklaus
parent e14bc30428
commit e8bae78749
5 changed files with 11 additions and 10 deletions
+3 -1
View File
@@ -137,7 +137,7 @@ typename Intersection::const_iterator
findBestMatchForReverse(const TurnLaneType::Mask &neighbor_tag, const Intersection &intersection)
{
const auto neighbor_itr = findBestMatch(neighbor_tag, intersection);
if ((neighbor_itr + 1 == intersection.cend()) || (neighbor_itr == intersection.cbegin() + 1))
if (neighbor_itr + 1 == intersection.cend())
return intersection.begin();
const constexpr double idealized_turn_angles[] = {0, 35, 90, 135, 180, 225, 270, 315};
@@ -239,6 +239,8 @@ Intersection triviallyMatchLanesToTurns(Intersection intersection,
// continue with the first lane
lane = 1;
}
else
return intersection;
}
for (; road_index < intersection.size() && lane < lane_data.size(); ++road_index)