diff options
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 92147a31b..07296d08a 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -976,6 +976,6 @@ static const WindowDesc _found_town_desc( void ShowBuildTownWindow() { - if (_game_mode != GM_EDITOR && !IsValidCompanyID(_local_company)) return; + if (_game_mode != GM_EDITOR && !Company::IsValidID(_local_company)) return; AllocateWindowDescFront<FoundTownWindow>(&_found_town_desc, 0); } |