Browse Source

fixed preAllocateDoId

Darren Ranalli 18 years ago
parent
commit
3c65c77a34
1 changed files with 3 additions and 3 deletions
  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)
         assert self.notify.debugStateCall(self)
         # have we already allocated a doId?
         # have we already allocated a doId?
         if self.__preallocDoId:
         if self.__preallocDoId:
-            assert doId == self.__preallocDoId
+            assert doId == self.doId
             self.__preallocDoId = 0
             self.__preallocDoId = 0
 
 
         # The repository is the one that really does the work
         # The repository is the one that really does the work
@@ -399,8 +399,8 @@ class DistributedObjectAI(DistributedObjectBase, EnforcesCalldowns):
         assert self.notify.debugStateCall(self)
         assert self.notify.debugStateCall(self)
         # have we already allocated a doId?
         # have we already allocated a doId?
         if self.__preallocDoId:
         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
             self.__preallocDoId = 0
 
 
         # Assign it an id
         # Assign it an id