From b2a91aa48621a797648ddef05c70035dfb61032d Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Mon, 16 Jul 2012 17:38:23 +0000 Subject: PVS Studio warning fix: Part of conditional expression is always false --- Stars45/MapView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Stars45/MapView.cpp b/Stars45/MapView.cpp index 5463e39..c791cf1 100644 --- a/Stars45/MapView.cpp +++ b/Stars45/MapView.cpp @@ -2912,8 +2912,8 @@ MapView::DrawCombatGroup(CombatGroup* group, int rep) nsprites = unit->GetDesign()->map_sprites.size(); if (nsprites) { - if (sprite_index < 0 || sprite_index >= nsprites) - sprite_index = sprite_index % nsprites; + if (sprite_index >= nsprites) + sprite_index = sprite_index % nsprites; Bitmap* map_sprite = unit->GetDesign()->map_sprites[sprite_index]; -- cgit v1.1