mirror of https://github.com/OpenTTD/OpenTTD
Fix: close Textfile windows when closing Option window
parent
0355f887d9
commit
8418e27403
|
@ -182,6 +182,7 @@ struct GameOptionsWindow : Window {
|
||||||
~GameOptionsWindow()
|
~GameOptionsWindow()
|
||||||
{
|
{
|
||||||
DeleteWindowById(WC_CUSTOM_CURRENCY, 0);
|
DeleteWindowById(WC_CUSTOM_CURRENCY, 0);
|
||||||
|
DeleteWindowByClass(WC_TEXTFILE);
|
||||||
if (this->reload) _switch_mode = SM_MENU;
|
if (this->reload) _switch_mode = SM_MENU;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue