don't crash out with duplicate doId on LIVE

This commit is contained in:
Darren Ranalli 2006-11-21 04:09:25 +00:00
parent bdf6973526
commit 0ca5963d3b

View File

@ -60,6 +60,12 @@ class DoHierarchy:
def storeObjectLocation(self, do, parentId, zoneId):
doId = do.doId
# until we figure out why Toontown is crashing with duplicate Toon generates, don't do the check on LIVE
try:
isLive = base.cr.isLive()
except:
isLive = True
if not isLive:
if doId in self._allDoIds:
self.notify.error(
'storeObjectLocation(%s %s) already in _allDoIds; duplicate generate()? or didn\'t clean up previous instance of DO?' % (