Skip to content

Commit 2b57888

Browse files
committed
fix(collections): Fixes an issue where adding values with the indexing property would not replicate
1 parent dd14b0f commit 2b57888

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MLAPI/Data/NetworkedCollections/NetworkedDictionary.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ public void ReadDelta(Stream stream, bool keepDirtyDelta)
207207
{
208208
TKey key = (TKey) reader.ReadObjectPacked(typeof(TKey));
209209
TValue value = (TValue) reader.ReadObjectPacked(typeof(TValue));
210-
if (dictionary.ContainsKey(key))
211-
dictionary[key] = value;
210+
211+
dictionary[key] = value;
212212

213213
if (OnDictionaryChanged != null)
214214
{

0 commit comments

Comments
 (0)