diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -158,7 +158,7 @@ static const WindowDesc _air_toolbar_des void ShowBuildAirToolbar() { - if (!IsValidCompanyID(_local_company)) return; + if (!Company::IsValidID(_local_company)) return; DeleteWindowByClass(WC_BUILD_TOOLBAR); AllocateWindowDescFront(&_air_toolbar_desc, TRANSPORT_AIR);