Workaround due to MSVC not running constructor in order
This commit is contained in:
parent
9e75b149c5
commit
186686122e
@ -114,7 +114,9 @@ void Server::start()
|
|||||||
m_backgrounds = ConfigManager::backgrounds();
|
m_backgrounds = ConfigManager::backgrounds();
|
||||||
|
|
||||||
// Build our music manager.
|
// 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::sendFMPacket, this, &Server::unicast);
|
||||||
connect(music_manager, &MusicManager::sendAreaFMPacket, this, QOverload<AOPacket *, int>::of(&Server::broadcast));
|
connect(music_manager, &MusicManager::sendAreaFMPacket, this, QOverload<AOPacket *, int>::of(&Server::broadcast));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user