Fix a typo in friends list and ignore list loading.
This fixes the bugs which appear when you have more than 50 entries on friends or ignore list. For example: You have 40 friends and 20 ignores, it's 60. But the core loads just 50 entries so some of them not loaded. Fixes issue #134. Patch by johnholiver. --HG-- branch : trunk
This commit is contained in:
@@ -313,8 +313,8 @@ PlayerSocial *SocialMgr::LoadFromDB(QueryResult_AutoPtr result, uint32 guid)
|
||||
|
||||
social->m_playerSocialMap[friend_guid] = FriendInfo(flags, note);
|
||||
|
||||
// client limit
|
||||
if(social->m_playerSocialMap.size() >= 50)
|
||||
// client's friends list and ignore list limit
|
||||
if(social->m_playerSocialMap.size() >= (SOCIALMGR_FRIEND_LIMIT + SOCIALMGR_IGNORE_LIMIT))
|
||||
break;
|
||||
}
|
||||
while (result->NextRow());
|
||||
|
||||
Reference in New Issue
Block a user