diff options
author | glx22 <glx22@users.noreply.github.com> | 2019-04-05 15:11:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-05 15:11:52 +0200 |
commit | a1e492d0d8970217800ebd78d328c9ddf0f13a31 (patch) | |
tree | c4135eccb649a412c2113f45b6306d95e9e08341 /src/economy.cpp | |
parent | fb6e31ca43b10b40fcaf1db0596dfaa48a1ecf20 (diff) | |
download | openttd-a1e492d0d8970217800ebd78d328c9ddf0f13a31.tar.xz |
Fix #7439: don't overwrite CompanyRemoveReason with ClientID (#7465)
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index d1ebd8a04..07dec815a 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -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; } } |