(svn r10335) -Fix (r10331): Increment the current order index *after* using it in UpdateVehicleTimetable.

This commit is contained in:
maedhros
2007-06-25 23:14:13 +00:00
parent 2d6f6c9dfa
commit 9fce70ac21
5 changed files with 8 additions and 8 deletions

View File

@@ -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;