diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2018-11-02 16:54:08 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2018-11-25 00:47:56 +0100 |
commit | c618a7c093cf0a0d0ad042ce7c382706d7f65cb1 (patch) | |
tree | 7712dd164cc00ac6437e33924639e6f866648446 | |
parent | c84b9913bd80e3c596e00faabc0a924c12a9cb38 (diff) | |
download | openttd-c618a7c093cf0a0d0ad042ce7c382706d7f65cb1.tar.xz |
Fix 6298b96: Changing music set did not save new setting
-rw-r--r-- | src/music_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/music_gui.cpp b/src/music_gui.cpp index 7bf08fd1d..87a073b0a 100644 --- a/src/music_gui.cpp +++ b/src/music_gui.cpp @@ -173,6 +173,9 @@ void MusicSystem::ChangeMusicSet(const char *set_name) { BaseMusic::SetSet(set_name); + free(BaseMusic::ini_set); + BaseMusic::ini_set = stredup(set_name); + this->BuildPlaylists(); this->ChangePlaylist(this->selected_playlist); |