# HG changeset patch # User SamuXarick <43006711+SamuXarick@users.noreply.github.com> # Date 2022-11-08 14:44:17 # Node ID 5d1d52a2f25221fa7621f4cf482e188e7e5379bf # Parent dd8444a93b07bcc05d963174ad4ebda40cd888d7 Fix #9908: Close company windows only after all its infrastructure is removed (#9912) diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -892,8 +892,6 @@ CommandCost CmdCompanyCtrl(DoCommandFlag if (!(flags & DC_EXEC)) return CommandCost(); - /* Delete any open window of the company */ - CloseCompanyWindows(c->index); CompanyNewsInformation *cni = new CompanyNewsInformation(c); /* Show the bankrupt news */