diff options
| author | Shauren <shauren.trinity@gmail.com> | 2021-11-02 22:50:05 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-11-02 22:50:05 +0100 |
| commit | 78e627e413cb4ff34402fbb2e7a4668d434cd226 (patch) | |
| tree | 62b641b31366fe3fb4469fdfb76e3dbd11786c76 /src/server/game/Server | |
| parent | 98b95fb264c4f1e30613a6dbd4cc892c6265b548 (diff) | |
Core/DataStores: Updated hotfix packet structures to 9.1.5
Diffstat (limited to 'src/server/game/Server')
| -rw-r--r-- | src/server/game/Server/Packets/HotfixPackets.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
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; } |
