diff options
| -rw-r--r-- | src/server/game/Entities/Player/SocialMgr.h | 1 | ||||
| -rw-r--r-- | src/server/game/Handlers/SocialHandler.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Entities/Player/SocialMgr.h b/src/server/game/Entities/Player/SocialMgr.h index d4ac04b08ed..87d057fef57 100644 --- a/src/server/game/Entities/Player/SocialMgr.h +++ b/src/server/game/Entities/Player/SocialMgr.h @@ -24,6 +24,7 @@ #include "ObjectGuid.h" class Player; +class WorldPacket; enum FriendStatus { diff --git a/src/server/game/Handlers/SocialHandler.cpp b/src/server/game/Handlers/SocialHandler.cpp index af3a38f92c6..c5279072239 100644 --- a/src/server/game/Handlers/SocialHandler.cpp +++ b/src/server/game/Handlers/SocialHandler.cpp @@ -126,7 +126,7 @@ void WorldSession::HandleAddIgnoreOpcodeCallBack(PreparedQueryResult result) if (ObjectGuid::LowType lowGuid = fields[0].GetUInt64()) { - ignoreGuid = ObjectGuid::Create<HighGuid::Player>((*result)[0].GetUInt64()); + ignoreGuid = ObjectGuid::Create<HighGuid::Player>(lowGuid); if (ignoreGuid == GetPlayer()->GetGUID()) //not add yourself ignoreResult = FRIEND_IGNORE_SELF; @@ -159,6 +159,6 @@ void WorldSession::HandleDelIgnoreOpcode(WorldPackets::Social::DelIgnore& packet void WorldSession::HandleSetContactNotesOpcode(WorldPackets::Social::SetContactNotes& packet) { /// @todo: handle VirtualRealmAddress - TC_LOG_DEBUG("network", "WorldSession::HandleSetContactNotesOpcode: Contact: %s, Notes: %s", packet.Player.Guid.ToString().c_str(), packet.Notes); + TC_LOG_DEBUG("network", "WorldSession::HandleSetContactNotesOpcode: Contact: %s, Notes: %s", packet.Player.Guid.ToString().c_str(), packet.Notes.c_str()); _player->GetSocial()->SetFriendNote(packet.Player.Guid, packet.Notes); } |
