diff options
author | maedhros <maedhros@openttd.org> | 2007-06-25 23:14:13 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-06-25 23:14:13 +0000 |
commit | fb284a9264b96b591c963f741242d4d912a2cc45 (patch) | |
tree | 9a1114f3fc036e3b3e9e07878478310db7aadfff /src/roadveh_cmd.cpp | |
parent | 217765fc0bdd036e1ded296fcbf77ab3c9f98f05 (diff) | |
download | openttd-fb284a9264b96b591c963f741242d4d912a2cc45.tar.xz |
(svn r10335) -Fix (r10331): Increment the current order index *after* using it in UpdateVehicleTimetable.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index fc7873deb..ce219bda6 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -758,8 +758,8 @@ static void ProcessRoadVehOrder(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; |