diff options
author | rubidium <rubidium@openttd.org> | 2009-11-15 23:22:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-15 23:22:07 +0000 |
commit | b02662c4c4277af3cc05e1985cac4edddfc5000c (patch) | |
tree | 35521f78817e29a8d821a2f1eb3fb32ced65da8a /src | |
parent | 0666a7058314f75efc6a21ea002d1e8dfa4a1301 (diff) | |
download | openttd-b02662c4c4277af3cc05e1985cac4edddfc5000c.tar.xz |
(svn r18112) -Fix (rnewpool): crash when a company got removed and you had the company league window opened
Diffstat (limited to 'src')
-rw-r--r-- | src/company_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); } /** |