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 f34551f commit c7a21f2Copy full SHA for c7a21f2
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@colyseus/schema",
3
- "version": "3.0.31",
+ "version": "3.0.32",
4
"description": "Binary state serializer with delta encoding for games",
5
"bin": {
6
"schema-codegen": "./bin/schema-codegen",
src/utils.ts
@@ -29,6 +29,9 @@ export function dumpChanges(schema: Schema) {
29
30
// for (const refId in $root.changes) {
31
$root.changes.forEach(changeTree => {
32
+ // skip if ChangeTree is undefined
33
+ if (changeTree === undefined) { return; }
34
+
35
const changes = changeTree.indexedOperations;
36
37
dump.refs.push(`refId#${changeTree.refId}`);
0 commit comments