summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2018-11-02 16:54:08 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2018-11-25 00:47:56 +0100
commitc618a7c093cf0a0d0ad042ce7c382706d7f65cb1 (patch)
tree7712dd164cc00ac6437e33924639e6f866648446 /src
parentc84b9913bd80e3c596e00faabc0a924c12a9cb38 (diff)
downloadopenttd-c618a7c093cf0a0d0ad042ce7c382706d7f65cb1.tar.xz
Fix 6298b96: Changing music set did not save new setting
Diffstat (limited to 'src')
-rw-r--r--src/music_gui.cpp3
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);