Skip to content

Commit

Permalink
Default to an empty string rather than Unknown.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Jan 5, 2021
1 parent baae3ba commit 922f2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/saved_game.cpp
Expand Up @@ -329,7 +329,7 @@ void saved_game::load_non_scenario(const std::string& type, const std::string& i
non_scenario["required"] = cfg[require_attr].to_bool(require_default);
config& content = non_scenario.add_child("content");
content["id"] = id;
content["name"] = cfg["addon_title"].str(cfg["name"].str("Unknown"));
content["name"] = cfg["addon_title"].str(cfg["name"].str(""));
content["type"] = type;

mp_settings_.update_addon_requirements(non_scenario);
Expand Down

0 comments on commit 922f2b6

Please sign in to comment.