diff --git a/samples/sample_binary.py b/samples/sample_binary.py index 96711fb45..cd250a9cf 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)