summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-10-15 20:42:32 +0000
committerrubidium <rubidium@openttd.org>2011-10-15 20:42:32 +0000
commitde27205e6c8aec594f7ae3b8205e8a1d60c24751 (patch)
tree84a180f9001812109677d95c57ee446178dada0d /src/economy.cpp
parent16e1314f58fa96915d79ca8419465ab2e5e8639e (diff)
downloadopenttd-de27205e6c8aec594f7ae3b8205e8a1d60c24751.tar.xz
(svn r23031) -Fix [FS#4804]: for the admin "bots" there was no distinction between bankruptcy and manual removal of companies even though the API suggested that
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 92babd802..78d271242 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -561,7 +561,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, 2 | (c->index << 16), 0, CMD_COMPANY_CTRL);
+ if (!_networking || _network_server) DoCommandP(0, 2 | (c->index << 16), CRR_BANKRUPT, CMD_COMPANY_CTRL);
break;
}
}