Browse Source

prevent AI startup crash (and re-break doHeirarchy)

Darren Ranalli 20 years ago
parent
commit
7080e735ef
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/distributed/DistributedObjectAI.py

+ 2 - 1
direct/src/distributed/DistributedObjectAI.py

@@ -355,7 +355,8 @@ class DistributedObjectAI(DirectObject.DirectObject):
         other networked info in this function.
         other networked info in this function.
         """
         """
         assert self.notify.debugStateCall(self)
         assert self.notify.debugStateCall(self)
-        self.air.storeObjectLocation(self.doId, self.parentId, self.zoneId)
+        # we don't always have a parentId, e.g. DistributedAvatarManagerAI
+        #self.air.storeObjectLocation(self.doId, self.parentId, self.zoneId)
 
 
     if wantOtpServer:
     if wantOtpServer:
         def generateInit(self, repository=None):
         def generateInit(self, repository=None):