diff options
author | Anubisss <none@none> | 2010-04-01 17:28:59 +0200 |
---|---|---|
committer | Anubisss <none@none> | 2010-04-01 17:28:59 +0200 |
commit | ab4c7cbd983c6efc51ee37846e15fdc804487829 (patch) | |
tree | 8003cadf657313c7e1d6403fbbc74ca3c92295c4 /src/game/SocialMgr.cpp | |
parent | e280d4e45bf8496cf92a6f33cf6753560325d0cc (diff) |
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
Diffstat (limited to 'src/game/SocialMgr.cpp')
-rw-r--r-- | src/game/SocialMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SocialMgr.cpp b/src/game/SocialMgr.cpp index c619da3178d..f11cc092ba0 100644 --- a/src/game/SocialMgr.cpp +++ b/src/game/SocialMgr.cpp @@ -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()); |