Resolved missing update for cata/mop

This commit is contained in:
Zyres
2023-07-21 17:45:30 +02:00
parent 9ba9a838c4
commit 7004ca570a
2 changed files with 3 additions and 3 deletions

View File

@@ -188,12 +188,12 @@ bool ChatHandler::HandleGMTicketListCommand(const char* args, WorldSession* m_se
Player* plr = sObjectMgr.GetPlayer((uint32)(*itr)->playerGuid);
Player* aplr = NULL;
CachedCharacterInfo* aplri = NULL;
std::shared_ptr<CachedCharacterInfo> aplri = NULL;
if ((*itr)->assignedToPlayer != 0)
{
aplr = sObjectMgr.GetPlayer((uint32)(*itr)->assignedToPlayer);
if (aplr == NULL)
aplri = sObjectMgr.GetPlayerInfo((uint32)(*itr)->assignedToPlayer);
aplri = sObjectMgr.getCachedCharacterInfo((uint32)(*itr)->assignedToPlayer)
}
std::stringstream ss;

View File

@@ -1492,7 +1492,7 @@ void WorldSession::handleGuildFinderGetRecruits(WorldPacket& recvPacket)
MembershipRequest request = *itr;
WoWGuid playerGuid(request.getPlayerGUID(), 0, HIGHGUID_TYPE_PLAYER);
CachedCharacterInfo* info = sObjectMgr.GetPlayerInfo(request.getPlayerGUID());
std::shared_ptr<CachedCharacterInfo> info = sObjectMgr.getCachedCharacterInfo(request.getPlayerGUID())
std::string name = info->name;
data.writeBits(request.getComment().size(), 11);