more debugging for deleteObjectLocation parentId=4294967295 AI crash

This commit is contained in:
Darren Ranalli 2007-04-23 22:46:27 +00:00
parent a51d4712cf
commit 59b7f35cad

View File

@ -199,6 +199,8 @@ class DoCollectionManager:
"handleObjectLocation: doId: %s parentId: %s zoneId: %s"% "handleObjectLocation: doId: %s parentId: %s zoneId: %s"%
(doId, parentId, zoneId)) (doId, parentId, zoneId))
# Let the object finish the job # Let the object finish the job
if hasattr(distObj, 'checkFFparentId'):
obj.checkFFparentId(parentId)
obj.setLocation(parentId, zoneId) obj.setLocation(parentId, zoneId)
#self.storeObjectLocation(doId, parentId, zoneId) #self.storeObjectLocation(doId, parentId, zoneId)
else: else:
@ -213,6 +215,8 @@ class DoCollectionManager:
zoneId = di.getUint32() zoneId = di.getUint32()
distObj = self.doId2do.get(self.getMsgChannel()) distObj = self.doId2do.get(self.getMsgChannel())
if distObj is not None: if distObj is not None:
if hasattr(distObj, 'checkFFparentId'):
distObj.checkFFparentId(parentId)
distObj.setLocation(parentId, zoneId) distObj.setLocation(parentId, zoneId)
else: else:
self.notify.warning('handleSetLocation: object %s not present' % self.getMsgChannel()) self.notify.warning('handleSetLocation: object %s not present' % self.getMsgChannel())