summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-06-25 23:14:13 +0000
committermaedhros <maedhros@openttd.org>2007-06-25 23:14:13 +0000
commit9fce70ac21fd360a8df5996fe7c333061504ceb5 (patch)
tree9a1114f3fc036e3b3e9e07878478310db7aadfff /src/vehicle.cpp
parent2d6f6c9dfa6c00033396e1861e25a29d1458315b (diff)
downloadopenttd-9fce70ac21fd360a8df5996fe7c333061504ceb5.tar.xz
(svn r10335) -Fix (r10331): Increment the current order index *after* using it in UpdateVehicleTimetable.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 4dc94f69b..3e3d7f46e 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2368,8 +2368,8 @@ void VehicleEnterDepot(Vehicle *v)
if (HASBIT(t.flags, OFB_PART_OF_ORDERS)) {
/* Part of orders */
- v->cur_order_index++;
UpdateVehicleTimetable(v, true);
+ v->cur_order_index++;
} else if (HASBIT(t.flags, OFB_HALT_IN_DEPOT)) {
/* Force depot visit */
v->vehstatus |= VS_STOPPED;