Skip to content

Commit fb33395

Browse files
committed
fix: actually add created LaneSection to Road
1 parent 78ab3b8 commit fb33395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenDriveMap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,9 @@ OpenDriveMap::OpenDriveMap(const std::string& xodr_file,
573573
// OpenDRIVE Format Specification, Rev. 1.4, 3.3.2 Lane Offset:
574574
// "... lane 0 may be offset using a cubic polynom"
575575
for (auto& id_lane : lanesection->id_to_lane)
576-
{
577576
id_lane.second.outer_border = id_lane.second.outer_border.add(road->lane_offset);
578-
}
577+
578+
road->s_to_lanesection.emplace(lanesection->s0, std::move(*lanesection));
579579
}
580580
if (invalid_lanesection)
581581
{

0 commit comments

Comments
 (0)