diff --git a/bindings/py3devil1tex.py b/bindings/py3devil1tex.py index 6125cdd..1e77a24 100644 --- a/bindings/py3devil1tex.py +++ b/bindings/py3devil1tex.py @@ -135,7 +135,7 @@ class pyTextureBatch: if filedata: self.cstruct.batch = None tbd = pyTextureBatchDescriptor(i, filedata) - self.amount = tbd.gettexno() + self.amount = tbd.gettexnumber() memsize = self.amount * tbd.gettexturesize() self.cstruct.batch = ctypes.cast( ctypes.create_string_buffer(memsize),