From fb284a9264b96b591c963f741242d4d912a2cc45 Mon Sep 17 00:00:00 2001 From: maedhros Date: Mon, 25 Jun 2007 23:14:13 +0000 Subject: (svn r10335) -Fix (r10331): Increment the current order index *after* using it in UpdateVehicleTimetable. --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle.cpp') 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; -- cgit v1.2.3-54-g00ecf