diff options
author | frosch <frosch@openttd.org> | 2009-05-09 13:37:18 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-05-09 13:37:18 +0000 |
commit | 677ea100b37b036d88e75f7fd27bcd9f79e6425d (patch) | |
tree | 8a0b0c7b14307007ccff3bcdb57475ba2ebc20c5 /src/roadveh_cmd.cpp | |
parent | a8aa4e2148747bc880ee430a1fc600767d1e0f89 (diff) | |
download | openttd-677ea100b37b036d88e75f7fd27bcd9f79e6425d.tar.xz |
(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate some code.
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 70fb90571..563d0679a 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -692,7 +692,7 @@ TileIndex RoadVehicle::GetOrderStationLocation(StationID station) return dest; } else { /* There is no stop left at the station, so don't even TRY to go there */ - this->cur_order_index++; + this->IncrementOrderIndex(); return 0; } } |