AI: Fix old recruitment aspect not working
This commit is contained in:
parent
2b58109133
commit
77184d4af0
1 changed files with 6 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue