From 2e7819927f00cfc06d59f1267ef010cf823b50ce Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 29 May 2024 17:05:04 +0100 Subject: [PATCH] Fix: Invalidate game options window after changing base sounds set. (#12731) --- src/sound.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sound.cpp b/src/sound.cpp index 7bb6d1ef26..c4ab75df6c 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -12,6 +12,7 @@ #include "mixer.h" #include "newgrf_sound.h" #include "random_access_file_type.h" +#include "window_func.h" #include "window_gui.h" #include "vehicle_base.h" @@ -259,6 +260,8 @@ void ChangeSoundSet(int index) sound->volume = _sound_base_vol[i]; sound->priority = 0; } + + InvalidateWindowData(WC_GAME_OPTIONS, WN_GAME_OPTIONS_GAME_OPTIONS, 0, true); } /**