Skip to content

Commit

Permalink
Fix UB in plan squashing (#106)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael X. Grey <[email protected]>
  • Loading branch information
mxgrey committed Dec 21, 2023
1 parent b98583d commit be8f9b3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,11 @@ std::vector<NodePtr> reconstruct_nodes(
else
last_midlane_node = node;
}

const auto wp = *node->waypoint;
cruft_map[wp].insert(node);
else
{
const auto wp = *node->waypoint;
cruft_map[wp].insert(node);
}
}

if (first_midlane_node && last_midlane_node)
Expand Down

0 comments on commit be8f9b3

Please sign in to comment.