From 78e627e413cb4ff34402fbb2e7a4668d434cd226 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 2 Nov 2021 22:50:05 +0100 Subject: Core/DataStores: Updated hotfix packet structures to 9.1.5 --- src/server/game/Server/Packets/HotfixPackets.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src/server/game/Server') diff --git a/src/server/game/Server/Packets/HotfixPackets.cpp b/src/server/game/Server/Packets/HotfixPackets.cpp index cf47fb83156..9524a493a1c 100644 --- a/src/server/game/Server/Packets/HotfixPackets.cpp +++ b/src/server/game/Server/Packets/HotfixPackets.cpp @@ -23,19 +23,33 @@ namespace WorldPackets { namespace Hotfix { +ByteBuffer& operator>>(ByteBuffer& data, DB2Manager::HotfixId& hotfixId) +{ + data >> hotfixId.PushID; + data >> hotfixId.UniqueID; + return data; +} + +ByteBuffer& operator<<(ByteBuffer& data, DB2Manager::HotfixId const& hotfixId) +{ + data << int32(hotfixId.PushID); + data << uint32(hotfixId.UniqueID); + return data; +} + ByteBuffer& operator>>(ByteBuffer& data, DB2Manager::HotfixRecord& hotfixRecord) { + data >> hotfixRecord.ID; data >> hotfixRecord.TableHash; data >> hotfixRecord.RecordID; - data >> hotfixRecord.HotfixID; return data; } ByteBuffer& operator<<(ByteBuffer& data, DB2Manager::HotfixRecord const& hotfixRecord) { + data << hotfixRecord.ID; data << uint32(hotfixRecord.TableHash); data << int32(hotfixRecord.RecordID); - data << int32(hotfixRecord.HotfixID); return data; } @@ -67,7 +81,7 @@ WorldPacket const* AvailableHotfixes::Write() _worldPacket << int32(VirtualRealmAddress); _worldPacket << uint32(Hotfixes.size()); for (DB2Manager::HotfixContainer::value_type const& hotfixRecord : Hotfixes) - _worldPacket << int32(hotfixRecord.first); + _worldPacket << hotfixRecord.second.front().ID; return &_worldPacket; } -- cgit v1.2.3