summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 8ce5e1fd7..dfc9de1db 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -522,6 +522,10 @@ static void CheckIfAircraftNeedsService(Aircraft *v)
return;
}
+ /* When we're parsing conditional orders and the like
+ * we don't want to consider going to a depot too. */
+ if (!v->current_order.IsType(OT_GOTO_DEPOT) && !v->current_order.IsType(OT_GOTO_STATION)) return;
+
const Station *st = Station::Get(v->current_order.GetDestination());
assert(st != NULL);