mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
refactor(Core/Social): Cleanup (#3843)
This commit is contained in:
@@ -315,16 +315,13 @@ PlayerSocial* SocialMgr::LoadFromDB(PreparedQueryResult result, uint64 guid)
|
||||
if (!result)
|
||||
return social;
|
||||
|
||||
uint8 flags = 0;
|
||||
std::string note = "";
|
||||
|
||||
do
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
auto friendGuid = fields[0].GetUInt32();
|
||||
flags = fields[1].GetUInt8();
|
||||
note = fields[2].GetString();
|
||||
auto flags = fields[1].GetUInt8();
|
||||
auto note = fields[2].GetString();
|
||||
|
||||
social->m_playerSocialMap[friendGuid] = FriendInfo(flags, note);
|
||||
} while (result->NextRow());
|
||||
|
||||
Reference in New Issue
Block a user