mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-22 18:49:40 +00:00
(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate some code.
This commit is contained in:
+1
-1
@@ -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