Fixed disconnect when clearing dynamic fields

This commit is contained in:
hondacrx
2017-07-06 13:44:24 -04:00
parent 671fd99dfc
commit af8fe06edf
3 changed files with 16 additions and 9 deletions
+1 -2
View File
@@ -848,10 +848,9 @@ namespace Game.Entities
fieldMask.SetBit(index);
DynamicUpdateMask arrayMask = new DynamicUpdateMask((uint)values.Length);
arrayMask.EncodeDynamicFieldChangeType(_dynamicChangesMask[index], updateType);
if (updateType == UpdateType.Values && _dynamicChangesMask[index] == DynamicFieldChangeType.ValueAndSizeChanged)
arrayMask.ValueCount = values.Length;
arrayMask.SetCount(values.Length);
for (var v = 0; v < values.Length; ++v)
{