Invert a conditional
Found by coverity.
This commit is contained in:
parent
812de972ac
commit
8179c7226b
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ void render_minimap(texture& tex, const gamemap& map, const team* vw, const std:
|
|||
color_t col(0, 0, 0, 0);
|
||||
|
||||
auto it = game_config::team_rgb_range.find(terrain_info.id());
|
||||
if(it == game_config::team_rgb_range.end()) {
|
||||
if(it != game_config::team_rgb_range.end()) {
|
||||
col = it->second.rep();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue