summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-28 17:33:12 +0000
committerrubidium <rubidium@openttd.org>2011-12-28 17:33:12 +0000
commit98fdf813201aeba23a9f87be4c8aa85720174bd9 (patch)
tree44f73151610a2648e796af0699766e8e951d2199 /src/console_cmds.cpp
parent156e25d37517013e05102980a4b1a21ed9111717 (diff)
downloadopenttd-98fdf813201aeba23a9f87be4c8aa85720174bd9.tar.xz
(svn r23680) -Fix [FS#4915]: prevent removal of the (AI) company the local player is in
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 374e378f7..05846c96f 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1245,7 +1245,7 @@ DEF_CONSOLE_CMD(ConStopAI)
return true;
}
- if (Company::IsHumanID(company_id)) {
+ if (Company::IsHumanID(company_id) || company_id == _local_company) {
IConsoleWarning("Company is not controlled by an AI.");
return true;
}