summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp6
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.");