diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1243,7 +1243,7 @@ void ShowVehicleListWindow(CompanyID com 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; }