Fixup ab4a9cf80a
This commit is contained in:
parent
379d4ea17b
commit
e3f397ca8c
1 changed files with 7 additions and 6 deletions
|
@ -425,13 +425,14 @@ void extract_summary_from_config(config& cfg_save, config& cfg_summary)
|
|||
//}
|
||||
|
||||
cfg_summary["leader"] = leader;
|
||||
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
|
||||
// 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
|
||||
if(!cfg_summary["leader_image"].empty()) {
|
||||
cfg_summary["leader_image"] = cfg_summary["leader_image"].str() + leader_image_tc_modifier;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue