Skip to content

Commit

Permalink
Do not duplicate [ai] tag when defined inside [side]
Browse files Browse the repository at this point in the history
Previously it was added for both the side and the side leader, now it is added only for the side.
  • Loading branch information
mattsc committed Jun 28, 2022
1 parent 0092c14 commit cc53020
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/teambuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ void team_builder::handle_leader(const config& leader)
stored.remove_attribute(attr);
}

// Remove [ai] tag as it is already added for the side
stored.remove_children("ai");

// Provide some default values, if not specified.
config::attribute_value& a1 = stored["canrecruit"];
if(a1.blank()) {
Expand Down

0 comments on commit cc53020

Please sign in to comment.