From ab4c7cbd983c6efc51ee37846e15fdc804487829 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Thu, 1 Apr 2010 17:28:59 +0200 Subject: [PATCH] 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 --- src/game/SocialMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/SocialMgr.cpp b/src/game/SocialMgr.cpp index c619da3178..f11cc092ba 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());