diff options
author | rubidium <rubidium@openttd.org> | 2011-12-28 17:33:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-28 17:33:12 +0000 |
commit | 98fdf813201aeba23a9f87be4c8aa85720174bd9 (patch) | |
tree | 44f73151610a2648e796af0699766e8e951d2199 /src | |
parent | 156e25d37517013e05102980a4b1a21ed9111717 (diff) | |
download | openttd-98fdf813201aeba23a9f87be4c8aa85720174bd9.tar.xz |
(svn r23680) -Fix [FS#4915]: prevent removal of the (AI) company the local player is in
Diffstat (limited to 'src')
-rw-r--r-- | src/console_cmds.cpp | 2 |
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; } |