summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-01-05 11:04:29 +0000
committerterkhen <terkhen@openttd.org>2011-01-05 11:04:29 +0000
commit03088daddaed0f3d844fd714a887149fd42593f8 (patch)
tree16e5de1b791e0d20497cfa0a4e198baf7f2c46a3 /src/company_cmd.cpp
parent68412eebec8487abcbd243e39e983b429163032e (diff)
downloadopenttd-03088daddaed0f3d844fd714a887149fd42593f8.tar.xz
(svn r21733) -Codechange: Clarify the update owner legend code.
-Fix: Prevent crashes caused by deleted companies.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index f47ac9174..4937274ce 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -906,8 +906,6 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
delete c;
AI::BroadcastNewEvent(new AIEventCompanyBankrupt(c_index));
CompanyAdminBankrupt(c_index);
- BuildOwnerLegend();
- InvalidateWindowData(WC_SMALLMAP, 0, 1);
break;
}