Core/Players: Use PlayerData::VirtualPlayerRealm instead of global GetVirtualRealmAddress() where possible
Port From (https://github.com/TrinityCore/TrinityCore/commit/88fea990ff1408b94076fb9dbd0c974908d6a731)
This commit is contained in:
@@ -409,7 +409,7 @@ namespace Game.BattlePets
|
||||
{
|
||||
BattlePetStruct.BattlePetOwnerInfo battlePetOwnerInfo = new();
|
||||
battlePetOwnerInfo.Guid = player.GetGUID();
|
||||
battlePetOwnerInfo.PlayerVirtualRealm = Global.WorldMgr.GetVirtualRealmAddress();
|
||||
battlePetOwnerInfo.PlayerVirtualRealm = _owner.m_playerData.VirtualPlayerRealm;
|
||||
battlePetOwnerInfo.PlayerNativeRealm = Global.WorldMgr.GetVirtualRealmAddress();
|
||||
pet.PacketInfo.OwnerInfo = battlePetOwnerInfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user