mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/PacketIO: Fixed sending ITEM_DYNAMIC_FIELD_MODIFIERS, value count must always match numbers of bits set in ITEM_FIELD_MODIFIERS_MASK
This commit is contained in:
@@ -1166,7 +1166,7 @@ void Item::BuildDynamicValuesUpdate(uint8 updateType, ByteBuffer* data, Player*
|
||||
// so we just have to write this starting from 0 index
|
||||
for (std::size_t v = 0, m = 0; v < values.size(); ++v)
|
||||
{
|
||||
if (values[v] || _dynamicChangesArrayMask[index][v])
|
||||
if (values[v])
|
||||
{
|
||||
UpdateMask::SetUpdateBit(data->contents() + arrayMaskPos, m++);
|
||||
*data << uint32(values[v]);
|
||||
|
||||
Reference in New Issue
Block a user