*Fix the bug in friends list that does offline players show online.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2009-04-18 00:52:44 +02:00
parent c688548c2c
commit 9de045c6d3
+5 -8
View File
@@ -194,8 +194,12 @@ void SocialMgr::GetFriendInfo(Player *player, uint32 friendGUID, FriendInfo &fri
if(!player)
return;
Player *pFriend = ObjectAccessor::FindPlayer(friendGUID);
friendInfo.Status = FRIEND_STATUS_OFFLINE;
friendInfo.Area = 0;
friendInfo.Level = 0;
friendInfo.Class = 0;
Player *pFriend = ObjectAccessor::FindPlayer(friendGUID);
if(!pFriend)
return;
@@ -224,13 +228,6 @@ void SocialMgr::GetFriendInfo(Player *player, uint32 friendGUID, FriendInfo &fri
friendInfo.Level = pFriend->getLevel();
friendInfo.Class = pFriend->getClass();
}
else
{
friendInfo.Status = FRIEND_STATUS_OFFLINE;
friendInfo.Area = 0;
friendInfo.Level = 0;
friendInfo.Class = 0;
}
}
void SocialMgr::MakeFriendStatusPacket(FriendsResult result, uint32 guid, WorldPacket *data)