fix require_resource in [resource]
previously918cdfcb36/src/saved_game.cpp (L293)
would fail for [resource] because cfg["addon_id"] was empty. (cherry-picked from commit7ef9f9a18f
)
This commit is contained in:
parent
155e9f377a
commit
e59a50b2f5
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ void game_config_manager::load_addons_cfg()
|
|||
cache_.get_config(addon.main_cfg, umc_cfg);
|
||||
|
||||
// Annotate "era", "modification", and scenario tags with addon_id info
|
||||
static const std::set<std::string> tags_with_addon_id { "era", "modification", "multiplayer", "scenario", "campaign" };
|
||||
static const std::set<std::string> tags_with_addon_id { "era", "modification", "resource", "multiplayer", "scenario", "campaign" };
|
||||
|
||||
for(auto child : umc_cfg.all_children_range()) {
|
||||
if(tags_with_addon_id.count(child.key) > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue