diff options
Diffstat (limited to 'tests/MyGame/Example2/Monster.py')
-rw-r--r-- | tests/MyGame/Example2/Monster.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/MyGame/Example2/Monster.py b/tests/MyGame/Example2/Monster.py index 538b0354..718f1e4b 100644 --- a/tests/MyGame/Example2/Monster.py +++ b/tests/MyGame/Example2/Monster.py @@ -10,7 +10,7 @@ class Monster(object): __slots__ = ['_tab'] @classmethod - def GetRootAsMonster(cls, buf, offset): + def GetRootAsMonster(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Monster() x.Init(buf, n + offset) |