From 186686122eecad347d10eeffa09e6d46b1b84b7d Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Sat, 31 Dec 2022 00:31:51 +0100 Subject: [PATCH] Workaround due to MSVC not running constructor in order --- core/src/server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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));