mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Packets: Move flushbits to the correct place in SpellDispellLog
This commit is contained in:
@@ -346,6 +346,8 @@ ByteBuffer& operator<<(ByteBuffer& buffer, WorldPackets::CombatLog::SpellDispell
|
||||
if (dispellData.Needed.is_initialized())
|
||||
buffer << int32(*dispellData.Needed);
|
||||
|
||||
_worldPacket.FlushBits();
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
||||
@@ -359,10 +361,7 @@ WorldPacket const* WorldPackets::CombatLog::SpellDispellLog::Write()
|
||||
|
||||
_worldPacket << uint32(DispellData.size());
|
||||
for (SpellDispellData const& data : DispellData)
|
||||
{
|
||||
_worldPacket.FlushBits();
|
||||
_worldPacket << data;
|
||||
}
|
||||
|
||||
return &_worldPacket;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user