Skip to content

Commit

Permalink
total_defenseでvectorの削除ができていなかった
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo committed Jan 6, 2025
1 parent ea5eb82 commit fbdd21f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class TotalDefensePlanner : public PlannerBase
auto goalie_id = world_model->getOurGoalieId();
if (ranges::count(selectable_robots, goalie_id) != 0) {
selected.push_back(goalie_id);
ranges::remove(remaining_robots, goalie_id);
remaining_robots |= ranges::actions::remove_if([goalie_id](auto elem){return elem == goalie_id;});
auto base = std::make_shared<RobotCommandWrapperBase>(
"goalie", world_model->getOurGoalieId(), world_model);
goalie = std::make_shared<skills::Goalie>(base);
Expand Down

0 comments on commit fbdd21f

Please sign in to comment.