1
0
Fork 0

Fix: Invalidate game options window after changing base sounds set.

pull/12731/head
Peter Nelson 2024-05-28 23:25:39 +01:00
parent f220ed179d
commit 9aa50abaf5
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
/**