Fix vague/misleading error messages for non-existent color palettes
Fixes bug #20439.
This commit is contained in:
parent
c7cacb1d5a
commit
7e965dbdd2
1 changed files with 2 additions and 2 deletions
|
@ -339,7 +339,7 @@ namespace game_config
|
|||
{
|
||||
std::vector<Uint32> temp;
|
||||
if(!string2rgb(rgb.second, temp)) {
|
||||
ERR_NG << "Invalid team color: " << rgb.second << "\n";
|
||||
ERR_NG << "Invalid color palette: " << rgb.second << "\n";
|
||||
}
|
||||
team_rgb_colors.insert(std::make_pair(rgb.first, temp));
|
||||
}
|
||||
|
@ -366,7 +366,7 @@ namespace game_config
|
|||
std::vector<Uint32> temp;
|
||||
if(!string2rgb(name, temp)) {
|
||||
static std::vector<Uint32> stv;
|
||||
ERR_NG << "Invalid team color: " << name << "\n";
|
||||
ERR_NG << "Invalid color palette: " << name << "\n";
|
||||
return stv;
|
||||
}
|
||||
team_rgb_colors.insert(std::make_pair(name,temp));
|
||||
|
|
Loading…
Add table
Reference in a new issue