@colyseus/schema 1.0.38 → 1.0.40

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.
@@ -924,7 +924,8 @@ var MapSchema = /** @class */ (function () {
924
924
  this.$indexes = new Map();
925
925
  this.$refId = 0;
926
926
  if (initialValues) {
927
- if (initialValues instanceof Map) {
927
+ if (initialValues instanceof Map ||
928
+ initialValues instanceof MapSchema) {
928
929
  initialValues.forEach(function (v, k) { return _this.set(k, v); });
929
930
  }
930
931
  else {