diff options
author | rubidium <rubidium@openttd.org> | 2011-01-15 18:19:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-15 18:19:04 +0000 |
commit | bd9f07e5a0a04f7a82dd7ce57a41d9e8bbab6b60 (patch) | |
tree | bc96309a680c0789a5823acec9afd54989f1875a /src/vehicle.cpp | |
parent | 4784c3ac3ca5a70b52ea39618cb3028b90b7a647 (diff) | |
download | openttd-bd9f07e5a0a04f7a82dd7ce57a41d9e8bbab6b60.tar.xz |
(svn r21809) -Fix [FS#4404]: remove unreached automatic orders as well when reaching an ordered waypoint or depot (fonsinchen)
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 1 |
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(); } |