浏览代码

fixed preAllocateDoId

Darren Ranalli 18 年之前
父节点
当前提交
3c65c77a34
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      direct/src/distributed/DistributedObjectAI.py

+ 3 - 3
direct/src/distributed/DistributedObjectAI.py

@@ -386,7 +386,7 @@ class DistributedObjectAI(DistributedObjectBase, EnforcesCalldowns):
         assert self.notify.debugStateCall(self)
         # have we already allocated a doId?
         if self.__preallocDoId:
-            assert doId == self.__preallocDoId
+            assert doId == self.doId
             self.__preallocDoId = 0
 
         # The repository is the one that really does the work
@@ -399,8 +399,8 @@ class DistributedObjectAI(DistributedObjectBase, EnforcesCalldowns):
         assert self.notify.debugStateCall(self)
         # have we already allocated a doId?
         if self.__preallocDoId:
-            assert doId is None or doId == self.__preallocDoId
-            doId=self.__preallocDoId
+            assert doId is None or doId == self.doId
+            doId=self.doId
             self.__preallocDoId = 0
 
         # Assign it an id