From 42256d7e65fb4eac2a6cb24b79bfd0896d0dbc19 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Mon, 16 Jul 2012 17:29:38 +0000 Subject: PVS Studio fix: Comparison using || is always true, using && instead --- Stars45/TacticalAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45/TacticalAI.cpp') diff --git a/Stars45/TacticalAI.cpp b/Stars45/TacticalAI.cpp index f020298..f8e7e32 100644 --- a/Stars45/TacticalAI.cpp +++ b/Stars45/TacticalAI.cpp @@ -736,7 +736,7 @@ TacticalAI::SelectTargetOpportunity() } } - if (ship->Class() != Ship::CARRIER || ship->Class() != Ship::SWACS) + if (ship->Class() != Ship::CARRIER && ship->Class() != Ship::SWACS) ship_ai->SetTarget(potential_target); } -- cgit v1.1