summaryrefslogtreecommitdiffhomepage
path: root/Stars45/MapView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/MapView.cpp')
-rw-r--r--Stars45/MapView.cpp4
1 files 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];