fixed packing structs in nested buffers (#6509)

This commit is contained in:
Kamil Rojewski
2021-03-11 20:14:23 +01:00
committed by GitHub
parent 0e453ac352
commit 6543ba5297
5 changed files with 21 additions and 10 deletions

View File

@@ -70,8 +70,10 @@ constructor(
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
const referToC = (this.referToC !== null ? this.referToC!.pack(builder) : 0);
return SecondTableInA.createSecondTableInA(builder,
(this.referToC !== null ? this.referToC!.pack(builder) : 0)
referToC
);
}
}