Fix #9908: Close company windows only after all its infrastructure is removed (#9912)

This commit is contained in:
SamuXarick
2022-11-08 14:44:17 +00:00
committed by GitHub
parent d738cd235f
commit 60ccab3c52

View File

@@ -892,8 +892,6 @@ CommandCost CmdCompanyCtrl(DoCommandFlag flags, CompanyCtrlAction cca, CompanyID
if (!(flags & DC_EXEC)) return CommandCost(); if (!(flags & DC_EXEC)) return CommandCost();
/* Delete any open window of the company */
CloseCompanyWindows(c->index);
CompanyNewsInformation *cni = new CompanyNewsInformation(c); CompanyNewsInformation *cni = new CompanyNewsInformation(c);
/* Show the bankrupt news */ /* Show the bankrupt news */