diff --git a/nav2_smac_planner/src/a_star.cpp b/nav2_smac_planner/src/a_star.cpp index 759b4e2e929..dcced09459d 100644 --- a/nav2_smac_planner/src/a_star.cpp +++ b/nav2_smac_planner/src/a_star.cpp @@ -197,7 +197,7 @@ void AStarAlgorithm::setGoal( } _goals.clear(); _goals_coordinates.clear(); - _goalSet.clear(); + _goalsSet.clear(); _goals.push_back(addToGraph(Node2D::getIndex(mx, my, getSizeX()))); _goals_coordinates.push_back(Node2D::Coordinates(mx, my));