summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vehicle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 5c5b50988..3f1e06dea 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1057,7 +1057,8 @@ void VehicleEnterDepot(Vehicle *v)
}
}
- if (t.GetDepotOrderType() & ODTFB_PART_OF_ORDERS) {
+ if (t.GetDepotOrderType() & ODTFB_PART_OF_ORDERS &&
+ (v->type == VEH_AIRCRAFT ? t.GetDestination() == GetStationIndex(v->tile) : v->dest_tile == v->tile)) {
/* Part of orders */
UpdateVehicleTimetable(v, true);
v->cur_order_index++;