From 75e409067ece85e6daff1429a6ff5be448bad449 Mon Sep 17 00:00:00 2001 From: "rhyskidd@gmail.com" Date: Sun, 22 Jul 2012 07:15:59 +0000 Subject: PVS-Studio fix: V547 Expression is always true. Probably the '&&' operator should be used here. starshiptacticalai.cpp 205 --- Stars45/StarshipTacticalAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45') diff --git a/Stars45/StarshipTacticalAI.cpp b/Stars45/StarshipTacticalAI.cpp index 61c126d..0c111a8 100644 --- a/Stars45/StarshipTacticalAI.cpp +++ b/Stars45/StarshipTacticalAI.cpp @@ -202,7 +202,7 @@ void StarshipTacticalAI::CheckBugOut(Ship* c_ship, double rng) { // see if carrier should bug out... - if (!ship || !c_ship || ship->Class() != Ship::CARRIER || ship->Class() != Ship::SWACS) + if (!ship || !c_ship || ship->Class() != Ship::CARRIER && ship->Class() != Ship::SWACS) return; if (bugout) -- cgit v1.1