From 0b8f6c1f3f41493cd4a484b2ee4cd30eda4c0468 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Wed, 20 Jul 2005 02:51:24 +0000 Subject: [PATCH] fix for create new avatar --- direct/src/distributed/DoCollectionManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/direct/src/distributed/DoCollectionManager.py b/direct/src/distributed/DoCollectionManager.py index bcbd215527..764f3f299a 100755 --- a/direct/src/distributed/DoCollectionManager.py +++ b/direct/src/distributed/DoCollectionManager.py @@ -227,7 +227,7 @@ class DoCollectionManager: if wantOtpServer: def removeDOFromTables(self, do): assert self.notify.debugStateCall(self) - assert do.doId in self.doId2do + #assert do.doId in self.doId2do location = do.getLocation() if location is not None: if location not in self.zoneId2doIds: @@ -239,8 +239,8 @@ class DoCollectionManager: del(self.zoneId2doIds[location][do.doId]) if len(self.zoneId2doIds[location]) == 0: del self.zoneId2doIds[location] - - del self.doId2do[do.doId] + if do.doId in self.doId2do: + del self.doId2do[do.doId] else: def removeDOFromTables(self, do): assert self.notify.debugStateCall(self)