diff options
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r-- | src/cheat_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index 8b3843617..f3ce7d0e1 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -44,7 +44,7 @@ static int32 ClickMoneyCheat(int32 p1, int32 p2) static int32 ClickChangeCompanyCheat(int32 p1, int32 p2) { while ((uint)p1 < Company::GetPoolSize()) { - if (IsValidCompanyID((CompanyID)p1)) { + if (Company::IsValidID((CompanyID)p1)) { SetLocalCompany((CompanyID)p1); return _local_company; } |