We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e3fff5 commit ba045bcCopy full SHA for ba045bc
Assets/Plugins/Colyseus/Serializer/Schema/Types/MapSchema.cs
@@ -58,7 +58,14 @@ public object GetByIndex(int index)
58
public void DeleteByIndex(int index)
59
{
60
string dynamicIndex = (string) GetIndex(index);
61
- if (Items.Contains(dynamicIndex))
+ if (
62
+ //
63
+ // FIXME:
64
+ // The schema encoder should not encode a DELETE operation when using ADD + DELETE in the same key. (in the same patch)
65
66
+ dynamicIndex != null &&
67
+ Items.Contains(dynamicIndex)
68
+ )
69
70
Items.Remove(dynamicIndex);
71
Indexes.Remove(index);
0 commit comments