Core/PacketIO: Fixed writing dynamic updatefield mask when size is exactly 32
Port From (https://github.com/TrinityCore/TrinityCore/commit/d3bf53772b47924f43553e169ba3c121307c55c8)
This commit is contained in:
@@ -178,6 +178,12 @@ namespace Game.Entities
|
||||
data.WriteUInt32(_updateMask[block]);
|
||||
}
|
||||
|
||||
else if (_values.Count == 32)
|
||||
{
|
||||
data.WriteBits(_updateMask.Last(), 32);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((_values.Count % 32) != 0)
|
||||
data.WriteBits(_updateMask.Last(), _values.Count % 32);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user