diff options
author | rhyskidd@gmail.com <rhyskidd@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-07-22 07:15:59 +0000 |
---|---|---|
committer | rhyskidd@gmail.com <rhyskidd@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-07-22 07:15:59 +0000 |
commit | 75e409067ece85e6daff1429a6ff5be448bad449 (patch) | |
tree | 8053b6777adf68a0278622f74b04449167e14319 | |
parent | 167d383f8ef1b52ef42373125ebf3daf2ad84418 (diff) | |
download | starshatter-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
-rw-r--r-- | Stars45/StarshipTacticalAI.cpp | 2 |
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)
|