Workaround due to MSVC not running constructor in order

This commit is contained in:
Salanto 2022-12-31 00:31:51 +01:00
parent 9e75b149c5
commit 186686122e

View File

@ -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<AOPacket *, int>::of(&Server::broadcast));