diff --git a/src/station_gui.cpp b/src/station_gui.cpp --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -676,7 +676,7 @@ static const WindowDesc _company_station */ void ShowCompanyStations(CompanyID company) { - if (!IsValidCompanyID(company)) return; + if (!Company::IsValidID(company)) return; AllocateWindowDescFront(&_company_stations_desc, company); }