Skip to content

Commit

Permalink
AI: Fix old recruitment aspect not working
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 17, 2017
1 parent 2b58109 commit 77184d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ai/configuration.cpp
Expand Up @@ -342,6 +342,12 @@ void configuration::expand_simplified_aspects(side_number side, config &cfg) {
parsed_config.add_child("aspect", p.second);
}
}
// Support old recruitment aspect syntax
for(auto& child : parsed_config.child_range("aspect")) {
if(child["id"] == "recruitment") {
child["id"] = "recruitment_instructions";
}
}
if (algorithm.empty() && !parsed_config.has_child("stage")) {
base_config = get_ai_config_for("ai_default_rca");
}
Expand Down

0 comments on commit 77184d4

Please sign in to comment.