(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 217765fc0b
commit fb284a9264
5 changed files with 8 additions and 8 deletions

View File

@@ -1344,8 +1344,8 @@ static void ProcessAircraftOrder(Vehicle *v)
if (!(v->current_order.flags & OF_PART_OF_ORDERS)) return;
if (v->current_order.flags & OF_SERVICE_IF_NEEDED &&
!VehicleNeedsService(v)) {
v->cur_order_index++;
UpdateVehicleTimetable(v, true);
v->cur_order_index++;
}
break;