Browse Source

oops, shouldn't double int8array length

David Rose 24 years ago
parent
commit
cc32ef9d8c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/extensions/DatagramIterator-extensions.py

+ 2 - 2
direct/src/extensions/DatagramIterator-extensions.py

@@ -42,12 +42,12 @@
                 for i in range(len):
                     retVal.append(self.getInt32())
             elif subatomicType == STUint8array:
-                len = self.getUint8() >> 1
+                len = self.getUint8()
                 retVal = []
                 for i in range(len):
                     retVal.append(self.getUint8())
             elif subatomicType == STUint16array:
-                len = self.getUint16()
+                len = self.getUint16() >> 1
                 retVal = []
                 for i in range(len):
                     retVal.append(self.getUint16())