Game Config: don't copy palette vector (it's big)

This commit is contained in:
Charles Dang 2024-08-18 13:56:49 -04:00
parent 9c1c442f31
commit 21254d5172

View file

@ -477,11 +477,8 @@ void add_color_info(const game_config_view& v, bool build_defaults)
LOG_NG << "registered color range '" << id << "': " << team_rgb_range[id].debug();
// Ggenerate palette of same name;
std::vector<color_t> tp = palette(team_rgb_range[id]);
if(!tp.empty()) {
team_rgb_colors.emplace(id, tp);
}
// Generate palette of same name;
team_rgb_colors.emplace(id, palette(team_rgb_range[id]));
if(build_defaults && teamC["default"].to_bool()) {
default_colors.push_back(*a1);