1
0
Fork 0

(svn r23680) -Fix [FS#4915]: prevent removal of the (AI) company the local player is in

release/1.2
rubidium 2011-12-28 17:33:12 +00:00
parent 156e25d375
commit 98fdf81320
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}