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:
Shauren
2016-07-12 20:56:09 +02:00
parent cf60c492ec
commit cb803e58ff

View File

@@ -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]);