Refactored singletons to enable proper deconstruction during shutdown
This commit is contained in:
1 parent
d2c120f2c2
commit
dce92611f3
39 files changed
+83
-84
No files matched your search
@@ -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