Merge pull request #327 from AttorneyOnline/hacky-fix-windows

Workaround due to MSVC not running constructor in order
This commit is contained in:
in1tiate 2023-03-26 18:54:41 -05:00 committed by GitHub
commit 9e82229d62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));