mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/PacketIO: Fixed packet structres changed after build 54449
This commit is contained in:
@@ -276,6 +276,7 @@ ByteBuffer& operator<<(ByteBuffer& data, EnumCharactersResult::RaceUnlock const&
|
||||
data.WriteBit(raceUnlock.HasAchievement);
|
||||
data.WriteBit(raceUnlock.HasHeritageArmor);
|
||||
data.WriteBit(raceUnlock.IsLocked);
|
||||
data.WriteBit(raceUnlock.Unused1027);
|
||||
data.FlushBits();
|
||||
|
||||
return data;
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace WorldPackets
|
||||
uint8 Subclass = 0;
|
||||
};
|
||||
|
||||
std::array<VisualItemInfo, 35> VisualItems = { };
|
||||
std::array<VisualItemInfo, 19> VisualItems = { };
|
||||
std::vector<std::string> MailSenders;
|
||||
std::vector<uint32> MailSenderTypes;
|
||||
bool RpeResetAvailable = false;
|
||||
@@ -187,6 +187,7 @@ namespace WorldPackets
|
||||
bool HasAchievement = false;
|
||||
bool HasHeritageArmor = false;
|
||||
bool IsLocked = false;
|
||||
bool Unused1027 = false;
|
||||
};
|
||||
|
||||
struct UnlockedConditionalAppearance
|
||||
|
||||
@@ -47,7 +47,7 @@ void WorldPackets::Chat::ChatMessageWhisper::Read()
|
||||
_worldPacket >> TargetGUID;
|
||||
_worldPacket >> TargetVirtualRealmAddress;
|
||||
|
||||
uint32 targetLen = _worldPacket.ReadBits(6);
|
||||
uint32 targetLen = _worldPacket.ReadBits(9);
|
||||
uint32 textLen = _worldPacket.ReadBits(11);
|
||||
|
||||
if (targetLen > 1)
|
||||
@@ -100,8 +100,8 @@ void WorldPackets::Chat::ChatAddonMessageTargeted::Read()
|
||||
_worldPacket >> PlayerGUID;
|
||||
_worldPacket >> PlayerVirtualRealmAddress;
|
||||
|
||||
uint32 playerNameLength = _worldPacket.ReadBits(6);
|
||||
uint32 channelNameLength = _worldPacket.ReadBits(6);
|
||||
uint32 playerNameLength = _worldPacket.ReadBits(9);
|
||||
uint32 channelNameLength = _worldPacket.ReadBits(8);
|
||||
|
||||
if (playerNameLength > 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user