diff --git a/core/src/server.cpp b/core/src/server.cpp index 8fdf4d4..b84b282 100644 --- a/core/src/server.cpp +++ b/core/src/server.cpp @@ -114,7 +114,9 @@ void Server::start() m_backgrounds = ConfigManager::backgrounds(); // Build our music manager. - music_manager = new MusicManager(ConfigManager::cdnList(), ConfigManager::musiclist(), ConfigManager::ordered_songs(), this); + + MusicList l_musiclist = ConfigManager::musiclist(); + music_manager = new MusicManager(ConfigManager::cdnList(), l_musiclist, ConfigManager::ordered_songs(), this); connect(music_manager, &MusicManager::sendFMPacket, this, &Server::unicast); connect(music_manager, &MusicManager::sendAreaFMPacket, this, QOverload::of(&Server::broadcast));