mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Refactored singletons to enable proper deconstruction during shutdown
This commit is contained in:
@@ -797,13 +797,13 @@ bool AuthSession::_HandleRealmList()
|
||||
uint32 id = fields[0].GetUInt32();
|
||||
|
||||
// Update realm list if need
|
||||
sRealmList.UpdateIfNeed();
|
||||
sRealmList->UpdateIfNeed();
|
||||
|
||||
// Circle through realms in the RealmList and construct the return packet (including # of user characters in each realm)
|
||||
ByteBuffer pkt;
|
||||
|
||||
size_t RealmListSize = 0;
|
||||
for (RealmList::RealmMap::const_iterator i = sRealmList.begin(); i != sRealmList.end(); ++i)
|
||||
for (RealmList::RealmMap::const_iterator i = sRealmList->begin(); i != sRealmList->end(); ++i)
|
||||
{
|
||||
const Realm &realm = i->second;
|
||||
// don't work with realms which not compatible with the client
|
||||
|
||||
Reference in New Issue
Block a user