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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 9610b833a..b253a2017 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -384,7 +384,7 @@ struct GameOptionsWindow : Window {
case GOW_TOWNNAME_DROPDOWN: // Town names
if (_game_mode == GM_MENU || Town::GetNumItems() == 0) {
this->opt->game_creation.town_name = index;
- InvalidateWindow(WC_GAME_OPTIONS, 0);
+ SetWindowDirty(WC_GAME_OPTIONS, 0);
}
break;