Skip to content

Commit

Permalink
Fix sample_binary.py to use latest EndVector without a size. (google#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rhofour authored Feb 19, 2021
1 parent e6b911d commit 5e3613f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/sample_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ def main():
# Note: Since we prepend the bytes, this loop iterates in reverse order.
for i in reversed(range(0, 10)):
builder.PrependByte(i)
inv = builder.EndVector(10)
inv = builder.EndVector()

MyGame.Sample.Monster.MonsterStartWeaponsVector(builder, 2)
# Note: Since we prepend the data, prepend the weapons in reverse order.
builder.PrependUOffsetTRelative(axe)
builder.PrependUOffsetTRelative(sword)
weapons = builder.EndVector(2)
weapons = builder.EndVector()

pos = MyGame.Sample.Vec3.CreateVec3(builder, 1.0, 2.0, 3.0)

Expand Down

0 comments on commit 5e3613f

Please sign in to comment.