(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate some code.
This commit is contained in:
@@ -3284,7 +3284,7 @@ TileIndex Train::GetOrderStationLocation(StationID station)
|
||||
const Station *st = GetStation(station);
|
||||
if (!(st->facilities & FACIL_TRAIN)) {
|
||||
/* The destination station has no trainstation tiles. */
|
||||
this->cur_order_index++;
|
||||
this->IncrementOrderIndex();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user