(svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' with GetDepotIndex(tile)

This commit is contained in:
rubidium
2009-09-10 14:37:55 +00:00
parent 751ea62f44
commit 860a538adc
8 changed files with 17 additions and 21 deletions

View File

@@ -1177,9 +1177,7 @@ void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type, TileInde
if (vehicle_type == VEH_AIRCRAFT) {
depot_airport_index = GetStationIndex(depot_tile);
} else {
Depot *depot = Depot::GetByTile(depot_tile);
if (depot == NULL) return; // no depot to show
depot_airport_index = depot->index;
depot_airport_index = GetDepotIndex(depot_tile);
}
ShowVehicleListWindowLocal(company, VLW_DEPOT_LIST, vehicle_type, depot_airport_index);
}