Skip to content

Commit

Permalink
Attempt to fix multiple leaders appearing in save_index
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Aug 28, 2016
1 parent eb2cff0 commit b09bd5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/save_index.cpp
Expand Up @@ -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;

Expand Down

1 comment on commit b09bd5b

@Vultraz
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GregoryLundberg see if this fixes, or at least prevents more copies of, the leader from appearing multiple times in Load Game for you.

Please sign in to comment.