Save Index: fixed leader TC coloring always being default (fixup ff5d68f9f5)

I was using the unit config instead of the side config :( Closes #2255. This is the
proper fix.
This commit is contained in:
Charles Dang 2017-12-01 04:13:28 +11:00
parent f61138498c
commit dcd93bbd13

View file

@ -407,8 +407,8 @@ void extract_summary_from_config(config& cfg_save, config& cfg_summary)
continue;
}
const std::string tc_color = team::get_side_color_id_from_config(u);
const std::string tc_color = team::get_side_color_id_from_config(side);
// Don't count it among the troops
units--;
leader = u["id"].str();