summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 95b4245fb..c9beba0f5 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1265,6 +1265,7 @@ void VehicleEnterDepot(Vehicle *v)
if (t.GetDepotOrderType() & ODTFB_PART_OF_ORDERS) {
/* Part of orders */
+ v->DeleteUnreachedAutoOrders();
UpdateVehicleTimetable(v, true);
v->IncrementOrderIndex();
}