From 93016b9a921903f8d03337501fdb2653dd653ee6 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Tue, 25 Mar 2025 17:58:59 +0000 Subject: [PATCH] Fix #13842: Close industry production graph if industry is removed. (#13890) --- src/industry_cmd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 1402256f40..a71421bc1b 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -195,6 +195,7 @@ Industry::~Industry() DeleteIndustryNews(this->index); CloseWindowById(WC_INDUSTRY_VIEW, this->index); + CloseWindowById(WC_INDUSTRY_PRODUCTION, this->index); DeleteNewGRFInspectWindow(GSF_INDUSTRIES, this->index); Source src{this->index, SourceType::Industry};