use string_span::to_bool() instead of utils::string_bool()
This commit is contained in:
parent
665656bab2
commit
2a14ed2ee0
1 changed files with 2 additions and 2 deletions
|
@ -2031,8 +2031,8 @@ void server::process_data_game(const network::connection sock,
|
|||
if (!data["mp_shroud"].to_bool()) {
|
||||
desc.set_attr_dup("map_data", data["map_data"]);
|
||||
}
|
||||
if(data.child("era")) {
|
||||
if(!(utils::string_bool(data.child("era")->attr("require_era").to_string(),true))) {
|
||||
if (const simple_wml::node* e = data.child("era")) {
|
||||
if (!e->attr("require_era").to_bool(true)) {
|
||||
desc.set_attr("require_era", "no");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue