Browse Source

direct: fix TypeError caused by py3 division changes

Michael Wass 4 years ago
parent
commit
ea49c121a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/distributed/DistributedObject.py

+ 1 - 1
direct/src/distributed/DistributedObject.py

@@ -125,7 +125,7 @@ class DistributedObject(DistributedObjectBase):
                     if field is not None:
                     if field is not None:
                         p = DCPacker()
                         p = DCPacker()
                         p.setUnpackData(field.getDefaultValue())
                         p.setUnpackData(field.getDefaultValue())
-                        len = p.rawUnpackUint16()/4
+                        len = p.rawUnpackUint16() // 4
                         for i in range(len):
                         for i in range(len):
                             zone = int(p.rawUnpackUint32())
                             zone = int(p.rawUnpackUint32())
                             autoInterests.add(zone)
                             autoInterests.add(zone)