summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index f0abf4626..6fe69370f 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -676,7 +676,7 @@ static const WindowDesc _company_stations_desc(
*/
void ShowCompanyStations(CompanyID company)
{
- if (!IsValidCompanyID(company)) return;
+ if (!Company::IsValidID(company)) return;
AllocateWindowDescFront<CompanyStationsWindow>(&_company_stations_desc, company);
}