summaryrefslogtreecommitdiffhomepage
path: root/Stars45
diff options
context:
space:
mode:
authorrhyskidd@gmail.com <rhyskidd@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-07-22 07:15:59 +0000
committerrhyskidd@gmail.com <rhyskidd@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-07-22 07:15:59 +0000
commit75e409067ece85e6daff1429a6ff5be448bad449 (patch)
tree8053b6777adf68a0278622f74b04449167e14319 /Stars45
parent167d383f8ef1b52ef42373125ebf3daf2ad84418 (diff)
downloadstarshatter-75e409067ece85e6daff1429a6ff5be448bad449.zip
starshatter-75e409067ece85e6daff1429a6ff5be448bad449.tar.gz
starshatter-75e409067ece85e6daff1429a6ff5be448bad449.tar.bz2
PVS-Studio fix: V547 Expression is always true. Probably the '&&' operator should be used here. starshiptacticalai.cpp 205
Diffstat (limited to 'Stars45')
-rw-r--r--Stars45/StarshipTacticalAI.cpp2
1 files changed, 1 insertions, 1 deletions
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)