CanMergeRoad missed test of rhs instance of IntersectionShapeData
Avoids identical sub-expressions road_target(lhs) == intersection_node
This commit is contained in:
parent
43a4e8db12
commit
fb5bd818d9
@ -80,7 +80,7 @@ bool MergableRoadDetector::CanMergeRoad(const NodeID intersection_node,
|
||||
};
|
||||
|
||||
// TODO might have to skip over trivial intersections
|
||||
if (road_target(lhs) == intersection_node || road_target(lhs) == intersection_node)
|
||||
if (road_target(lhs) == intersection_node || road_target(rhs) == intersection_node)
|
||||
return false;
|
||||
|
||||
// Don't merge turning circles/traffic loops
|
||||
|
Loading…
Reference in New Issue
Block a user