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:
Anubisss
2010-04-01 17:28:59 +02:00
parent e280d4e45b
commit ab4c7cbd98
+2 -2
View File
@@ -313,8 +313,8 @@ PlayerSocial *SocialMgr::LoadFromDB(QueryResult_AutoPtr result, uint32 guid)
social->m_playerSocialMap[friend_guid] = FriendInfo(flags, note); social->m_playerSocialMap[friend_guid] = FriendInfo(flags, note);
// client limit // client's friends list and ignore list limit
if(social->m_playerSocialMap.size() >= 50) if(social->m_playerSocialMap.size() >= (SOCIALMGR_FRIEND_LIMIT + SOCIALMGR_IGNORE_LIMIT))
break; break;
} }
while (result->NextRow()); while (result->NextRow());