Skip to content

Commit

Permalink
Game Load: Restore the ability to select 1.12.6 savegames in the list
Browse files Browse the repository at this point in the history
Broken in 14abecb (#3495)
  • Loading branch information
jostephd committed Sep 16, 2018
1 parent 698d233 commit 1497dc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/save_index.cpp
Expand Up @@ -373,7 +373,11 @@ void extract_summary_from_config(config& cfg_save, config& cfg_summary)
cfg_summary["difficulty"] = cfg_save["difficulty"];
cfg_summary["random_mode"] = cfg_save["random_mode"];

cfg_summary["active_mods"] = cfg_save.child("multiplayer")["active_mods"];
if(cfg_save.has_child("multiplayer")) {
cfg_summary["active_mods"] = cfg_save.child("multiplayer")["active_mods"];
} else {
cfg_summary["active_mods"] = "";
}
cfg_summary["campaign"] = cfg_save["campaign"];
cfg_summary["version"] = cfg_save["version"];
cfg_summary["corrupt"] = "";
Expand Down

0 comments on commit 1497dc5

Please sign in to comment.