Fix: close Textfile windows when closing Option window

This commit is contained in:
glx 2019-02-01 16:35:25 +01:00 committed by glx22
parent 0355f887d9
commit 8418e27403
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ struct GameOptionsWindow : Window {
~GameOptionsWindow()
{
DeleteWindowById(WC_CUSTOM_CURRENCY, 0);
DeleteWindowByClass(WC_TEXTFILE);
if (this->reload) _switch_mode = SM_MENU;
}