Skip to content

Commit

Permalink
Attempt to fix console warnings about attempting to draw '~RC(magenta…
Browse files Browse the repository at this point in the history
…>1)'
  • Loading branch information
Vultraz committed Aug 24, 2016
1 parent 30fe0ce commit ab4a9cf
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/save_index.cpp
Expand Up @@ -425,12 +425,15 @@ void extract_summary_from_config(config& cfg_save, config& cfg_summary)
//}

cfg_summary["leader"] = leader;
// We need a binary path-independent path to the leader image here
// so it can be displayed for campaign-specific units in the dialog
// even when the campaign isn't loaded yet.
cfg_summary["leader_image"] = filesystem::get_independent_image_path(leader_image);
// Append the leader image's team coloring
cfg_summary["leader_image"] = cfg_summary["leader_image"].str() + leader_image_tc_modifier;
if(!cfg_summary["leader_image"].empty()) {
// We need a binary path-independent path to the leader image here
// so it can be displayed for campaign-specific units in the dialog
// even when the campaign isn't loaded yet.
cfg_summary["leader_image"] = filesystem::get_independent_image_path(leader_image);

// Append the leader image's team coloring
cfg_summary["leader_image"] = cfg_summary["leader_image"].str() + leader_image_tc_modifier;
}

if(!shrouded) {
if(has_snapshot) {
Expand Down

1 comment on commit ab4a9cf

@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 Try deleting your save_index file in your userdata directory after pulling this and see if the warnings go away (they seem to happen in the Load Game dialog).

Please sign in to comment.