(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate some code.

This commit is contained in:
frosch
2009-05-09 13:37:18 +00:00
parent 20dab97717
commit 8bb92c110d
6 changed files with 27 additions and 20 deletions

View File

@@ -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;
}
}