fix list math

This commit is contained in:
Kelvin Sherlock 2020-07-30 01:06:38 -04:00
parent eb18060010
commit cac3129e56

View File

@ -139,7 +139,7 @@ class rList(rObject):
raise TypeError("bad type: {}".format(type(x)))
def __bytes__(self):
bb = bytearray(4 + len(self.children))
bb = bytearray(4 + len(self.children) * 4)
offset = 0
for x in self.children:
struct.pack_into("<I", bb, offset, x.get_id())