(svn r21733) -Codechange: Clarify the update owner legend code.

-Fix: Prevent crashes caused by deleted companies.
This commit is contained in:
terkhen
2011-01-05 11:04:29 +00:00
parent 68412eebec
commit 03088dadda
3 changed files with 28 additions and 7 deletions

View File

@@ -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;
}