Fix #7439: don't overwrite CompanyRemoveReason with ClientID (#7465)

This commit is contained in:
glx22
2019-04-05 15:11:52 +02:00
committed by GitHub
parent fb6e31ca43
commit a1e492d0d8
5 changed files with 11 additions and 12 deletions

View File

@@ -640,7 +640,7 @@ static void CompanyCheckBankrupt(Company *c)
* that changing the current company is okay. In case of single
* player we are sure (the above check) that we are not the local
* company and thus we won't be moved. */
if (!_networking || _network_server) DoCommandP(0, CCA_DELETE | (c->index << 16), CRR_BANKRUPT, CMD_COMPANY_CTRL);
if (!_networking || _network_server) DoCommandP(0, CCA_DELETE | (c->index << 16) | (CRR_BANKRUPT << 24), 0, CMD_COMPANY_CTRL);
break;
}
}