summaryrefslogtreecommitdiffhomepage
path: root/Stars45/TacticalAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/TacticalAI.cpp')
-rw-r--r--Stars45/TacticalAI.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}