diff options
author | glx <glx@openttd.org> | 2019-02-01 16:35:25 +0100 |
---|---|---|
committer | glx22 <glx22@users.noreply.github.com> | 2019-02-01 16:46:45 +0100 |
commit | 8418e27403d587c393fb0cdd140d60198e444683 (patch) | |
tree | 99068939cc787a3e3512d9770348ac43267950b9 /src | |
parent | 0355f887d99974d21d678f1b7a12a343dc9ab04a (diff) | |
download | openttd-8418e27403d587c393fb0cdd140d60198e444683.tar.xz |
Fix: close Textfile windows when closing Option window
Diffstat (limited to 'src')
-rw-r--r-- | src/settings_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index e94f96bc4..2faf2b150 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -182,6 +182,7 @@ struct GameOptionsWindow : Window { ~GameOptionsWindow() { DeleteWindowById(WC_CUSTOM_CURRENCY, 0); + DeleteWindowByClass(WC_TEXTFILE); if (this->reload) _switch_mode = SM_MENU; } |