From 5e3613f73294f3b03b5373c05ea9f7402d58131e Mon Sep 17 00:00:00 2001 From: Richard A Hofer Date: Fri, 19 Feb 2021 15:13:50 -0500 Subject: [PATCH] Fix sample_binary.py to use latest EndVector without a size. (#6478) --- samples/sample_binary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/sample_binary.py b/samples/sample_binary.py index 96711fb..cd250a9 100644 --- a/samples/sample_binary.py +++ b/samples/sample_binary.py @@ -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) -- 2.7.4