diff options
author | smatz <smatz@openttd.org> | 2009-05-16 23:34:14 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-16 23:34:14 +0000 |
commit | 6221d74644922ea4bbba3ed9cd8bbec42398f77b (patch) | |
tree | 0069bbd6bb7525754c5d9353132f5dc64a0996cc /src/console_cmds.cpp | |
parent | 814f153b5a98e0030cbd221e6a89e083ce62bb1d (diff) | |
download | openttd-6221d74644922ea4bbba3ed9cd8bbec42398f77b.tar.xz |
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 771ee62f1..48f5d4a2c 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -650,7 +650,7 @@ DEF_CONSOLE_CMD(ConJoinCompany) return true; } - if (company_id != COMPANY_SPECTATOR && GetCompany(company_id)->is_ai) { + if (company_id != COMPANY_SPECTATOR && Company::Get(company_id)->is_ai) { IConsoleError("Cannot join AI company."); return true; } @@ -693,7 +693,7 @@ DEF_CONSOLE_CMD(ConMoveClient) return true; } - if (company_id != COMPANY_SPECTATOR && GetCompany(company_id)->is_ai) { + if (company_id != COMPANY_SPECTATOR && Company::Get(company_id)->is_ai) { IConsoleError("You cannot move clients to AI companies."); return true; } @@ -734,7 +734,7 @@ DEF_CONSOLE_CMD(ConResetCompany) return true; } - const Company *c = GetCompany(index); + const Company *c = Company::Get(index); if (c->is_ai) { IConsoleError("Company is owned by an AI."); |