Skip to content

Commit

Permalink
Core/Players: Added missed changes to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Oct 3, 2015
1 parent fd17ea1 commit 8ebb105
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Player/SocialMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ PlayerSocial* SocialMgr::LoadFromDB(PreparedQueryResult result, ObjectGuid const
ObjectGuid friendAccountGuid = ObjectGuid::Create<HighGuid::WowAccount>(uint64(fields[1].GetUInt32()));

uint8 flag = fields[2].GetUInt8();
social->_playerSocialMap[friendGuid] = FriendInfo(flag, fields[3].GetString());
social->_playerSocialMap[friendGuid] = FriendInfo(friendAccountGuid, flag, fields[3].GetString());
}
while (result->NextRow());
}
Expand Down
3 changes: 2 additions & 1 deletion src/server/game/Entities/Player/SocialMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ struct FriendInfo
FriendInfo() : Status(FRIEND_STATUS_OFFLINE), Flags(0), Area(0), Level(0), Class(0), Note()
{ }

FriendInfo(uint8 flags, std::string const& note) : Status(FRIEND_STATUS_OFFLINE), Flags(flags), Area(0), Level(0), Class(0), Note(note)
FriendInfo(ObjectGuid const& accountGuid, uint8 flags, std::string const& note) : WowAccountGuid(accountGuid), Status(FRIEND_STATUS_OFFLINE),
Flags(flags), Area(0), Level(0), Class(0), Note(note)
{ }
};

Expand Down

0 comments on commit 8ebb105

Please sign in to comment.