@colyseus/schema 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1191,7 +1191,7 @@ function type(type, context = globalContext) {
1191
1191
  value['$changes'].setParent(this, this.$changes.root, this._definition.indexes[field]);
1192
1192
  }
1193
1193
  }
1194
- else {
1194
+ else if (this[fieldCached]) {
1195
1195
  //
1196
1196
  // Setting a field to `null` or `undefined` will delete it.
1197
1197
  //