forked from mirror/OpenTTD
(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()
This commit is contained in:
@@ -1243,7 +1243,7 @@ void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type, TileInde
|
||||
if (vehicle_type == VEH_AIRCRAFT) {
|
||||
depot_airport_index = GetStationIndex(depot_tile);
|
||||
} else {
|
||||
Depot *depot = GetDepotByTile(depot_tile);
|
||||
Depot *depot = Depot::GetByTile(depot_tile);
|
||||
if (depot == NULL) return; // no depot to show
|
||||
depot_airport_index = depot->index;
|
||||
}
|
||||
|
Reference in New Issue
Block a user