Editor/Context: don't copy config in lambda...
This commit is contained in:
parent
615855ebb5
commit
0664724c99
1 changed files with 3 additions and 1 deletions
|
@ -650,7 +650,9 @@ config map_context::to_config()
|
|||
: scen.add_child("multiplayer");
|
||||
|
||||
scenario.remove_children("side");
|
||||
scenario.remove_children("event", [](config cfg){return cfg["id"].str() == "editor_event-start" || cfg["id"].str() == "editor_event-prestart";});
|
||||
scenario.remove_children("event", [](const config& cfg) {
|
||||
return cfg["id"].str() == "editor_event-start" || cfg["id"].str() == "editor_event-prestart";
|
||||
});
|
||||
|
||||
scenario["id"] = scenario_id_;
|
||||
scenario["name"] = t_string(scenario_name_, current_textdomain);
|
||||
|
|
Loading…
Add table
Reference in a new issue