Fix #13842: Close industry production graph if industry is removed. (#13890)

This commit is contained in:
Peter Nelson
2025-03-25 17:58:59 +00:00
committed by GitHub
parent 9f94cadd68
commit 93016b9a92

View File

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