summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 559c39587..6fae298bc 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -172,11 +172,12 @@ struct GameOptionsWindow : Window {
this->OnInvalidateData(0);
}
- ~GameOptionsWindow()
+ void Close() override
{
DeleteWindowById(WC_CUSTOM_CURRENCY, 0);
DeleteWindowByClass(WC_TEXTFILE);
if (this->reload) _switch_mode = SM_MENU;
+ this->Window::Close();
}
/**