mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-16 17:15:05 +01:00
(svn r18112) -Fix (rnewpool): crash when a company got removed and you had the company league window opened
This commit is contained in:
parent
0666a70583
commit
b02662c4c4
@ -76,6 +76,7 @@ void Company::PostDestructor(size_t index)
|
|||||||
{
|
{
|
||||||
InvalidateWindowData(WC_GRAPH_LEGEND, 0, (int)index);
|
InvalidateWindowData(WC_GRAPH_LEGEND, 0, (int)index);
|
||||||
InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, (int)index);
|
InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, (int)index);
|
||||||
|
InvalidateWindowData(WC_COMPANY_LEAGUE, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user