From 677ea100b37b036d88e75f7fd27bcd9f79e6425d Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 9 May 2009 13:37:18 +0000 Subject: (svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate some code. --- src/roadveh_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/roadveh_cmd.cpp') 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; } } -- cgit v1.2.3-70-g09d2