From 118583425ab8c7339f1af6afa7c5ffd112e5a679 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Mon, 16 Jul 2012 17:40:07 +0000 Subject: PVS Studio warning fix: Part of conditional expression is always true (Note to self: this code is weeeeeiiird around line 221....) --- Stars45/MissionTemplate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stars45/MissionTemplate.cpp b/Stars45/MissionTemplate.cpp index 18257ab..9bff8ba 100644 --- a/Stars45/MissionTemplate.cpp +++ b/Stars45/MissionTemplate.cpp @@ -227,7 +227,7 @@ MissionTemplate::FindCombatGroup(int iff, const ShipDesign* d) if (campaign) { ListIter combatant = campaign->GetCombatants(); - while (++combatant && !result) { + while (++combatant) { if (combatant->GetIFF() == iff) { ::SelectCombatGroups(combatant->GetForce(), d, group_list); } -- cgit v1.1