From b02662c4c4277af3cc05e1985cac4edddfc5000c Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 15 Nov 2009 23:22:07 +0000 Subject: (svn r18112) -Fix (rnewpool): crash when a company got removed and you had the company league window opened --- src/company_cmd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index b0aebf2c5..03bde9122 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -76,6 +76,7 @@ void Company::PostDestructor(size_t index) { InvalidateWindowData(WC_GRAPH_LEGEND, 0, (int)index); InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, (int)index); + InvalidateWindowData(WC_COMPANY_LEAGUE, 0, 0); } /** -- cgit v1.2.3-54-g00ecf