Attempt to fix multiple leaders appearing in save_index

This commit is contained in:
Charles Dang 2016-08-28 21:58:19 +11:00
parent eb2cff007b
commit b09bd5bbb5

View file

@ -367,6 +367,9 @@ void extract_summary_from_config(config& cfg_save, config& cfg_summary)
}
}
// Ensure we don't get duplicate [leader] tags
cfg_summary.clear_children("leader");
// Find the human leaders so we can display their icons and names in the load menu.
config leader_config;