summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-05-09 13:37:18 +0000
committerfrosch <frosch@openttd.org>2009-05-09 13:37:18 +0000
commit677ea100b37b036d88e75f7fd27bcd9f79e6425d (patch)
tree8a0b0c7b14307007ccff3bcdb57475ba2ebc20c5 /src/roadveh_cmd.cpp
parenta8aa4e2148747bc880ee430a1fc600767d1e0f89 (diff)
downloadopenttd-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.cpp2
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;
}
}