summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/default/default.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index 7316b5648..ed805fb43 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -95,7 +95,7 @@ static void AiStateVehLoop(Player *p)
if ((v->type == VEH_Train && v->subtype == 0) ||
v->type == VEH_Road ||
- (v->type == VEH_Aircraft && v->subtype <= 2) ||
+ (v->type == VEH_Aircraft && IsNormalAircraft(v)) ||
v->type == VEH_Ship) {
/* replace engine? */
if (v->type == VEH_Train && v->engine_type < 3 &&