(svn r10335) -Fix (r10331): Increment the current order index *after* using it in UpdateVehicleTimetable.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user