aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Server')
-rw-r--r--src/server/game/Server/Packets/QueryPackets.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Server/Packets/QueryPackets.cpp b/src/server/game/Server/Packets/QueryPackets.cpp
index 8c4ba6f1746..6433b62d2ea 100644
--- a/src/server/game/Server/Packets/QueryPackets.cpp
+++ b/src/server/game/Server/Packets/QueryPackets.cpp
@@ -17,6 +17,7 @@
#include "QueryPackets.h"
#include "BattlenetAccountMgr.h"
+#include "CharacterCache.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "World.h"
@@ -121,7 +122,7 @@ ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::Query::PlayerGuidLookupHi
bool WorldPackets::Query::PlayerGuidLookupData::Initialize(ObjectGuid const& guid, Player const* player /*= nullptr*/)
{
- CharacterInfo const* characterInfo = sWorld->GetCharacterInfo(guid);
+ CharacterCacheEntry const* characterInfo = sCharacterCache->GetCharacterCacheByGuid(guid);
if (!characterInfo)
return false;
@@ -142,7 +143,7 @@ bool WorldPackets::Query::PlayerGuidLookupData::Initialize(ObjectGuid const& gui
}
else
{
- uint32 accountId = ObjectMgr::GetPlayerAccountIdByGUID(guid);
+ uint32 accountId = sCharacterCache->GetCharacterAccountIdByGuid(guid);
uint32 bnetAccountId = ::Battlenet::AccountMgr::GetIdByGameAccount(accountId);
AccountID = ObjectGuid::Create<HighGuid::WowAccount>(accountId);