From 60ccab3c528bc4b46a341a82b4005a13ec435032 Mon Sep 17 00:00:00 2001 From: SamuXarick <43006711+SamuXarick@users.noreply.github.com> Date: Tue, 8 Nov 2022 14:44:17 +0000 Subject: [PATCH] Fix #9908: Close company windows only after all its infrastructure is removed (#9912) --- src/company_cmd.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index e2ea0a20f1..6d3f5b6256 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -892,8 +892,6 @@ CommandCost CmdCompanyCtrl(DoCommandFlag flags, CompanyCtrlAction cca, CompanyID 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 */