Fix include_file= not being able to handle cfg files generated by the editor
including scenarios generated by the editor was the main usecase for this
This commit is contained in:
parent
f3c963ca00
commit
eda389b28d
1 changed files with 2 additions and 1 deletions
|
@ -454,8 +454,9 @@ void saved_game::expand_mp_options()
|
|||
}
|
||||
}
|
||||
|
||||
static void inherit_scenario(config& scenario, config& map_scenario)
|
||||
static void inherit_scenario(config& scenario, config& map_scen)
|
||||
{
|
||||
config& map_scenario = map_scen.has_child("multiplayer") ? map_scen.mandatory_child("multiplayer") : (map_scen.has_child("scenario") ? map_scen.mandatory_child("scenario") : map_scen);
|
||||
config sides;
|
||||
sides.splice_children(map_scenario, "side");
|
||||
scenario.append_children(map_scenario);
|
||||
|
|
Loading…
Add table
Reference in a new issue