(svn r23680) -Fix [FS#4915]: prevent removal of the (AI) company the local player is in
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user