Skip to content

Commit

Permalink
Invert a conditional
Browse files Browse the repository at this point in the history
Found by coverity.
  • Loading branch information
AI0867 committed Mar 22, 2018
1 parent 812de97 commit 8179c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/minimap.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit 8179c72

Please sign in to comment.