aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/SocialHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Handlers/SocialHandler.cpp')
-rw-r--r--src/server/game/Handlers/SocialHandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Handlers/SocialHandler.cpp b/src/server/game/Handlers/SocialHandler.cpp
index 02e381e2be6..16dc1421da4 100644
--- a/src/server/game/Handlers/SocialHandler.cpp
+++ b/src/server/game/Handlers/SocialHandler.cpp
@@ -25,10 +25,9 @@
#include "Player.h"
#include "QueryCallback.h"
#include "RBAC.h"
-#include "Realm.h"
+#include "RealmList.h"
#include "SocialMgr.h"
#include "SocialPackets.h"
-#include "World.h"
void WorldSession::HandleContactListOpcode(WorldPackets::Social::SendContactList& packet)
{
@@ -104,7 +103,7 @@ void WorldSession::HandleAddFriendOpcode(WorldPackets::Social::AddFriend& packet
}
// When not found, consult database
- GetQueryProcessor().AddCallback(AccountMgr::GetSecurityAsync(friendCharacterInfo->AccountId, realm.Id.Realm,
+ GetQueryProcessor().AddCallback(AccountMgr::GetSecurityAsync(friendCharacterInfo->AccountId, sRealmList->GetCurrentRealmId().Realm,
[this, continuation = std::move(processFriendRequest)](uint32 friendSecurity)
{
if (!AccountMgr::IsPlayerAccount(friendSecurity))