more robust cleanup

This commit is contained in:
Darren Ranalli 2003-09-25 03:05:31 +00:00
parent 5f44cffb55
commit c834e52eca

View File

@ -83,8 +83,10 @@ class Level:
del self.createdEntities del self.createdEntities
if hasattr(self, 'entities'): if hasattr(self, 'entities'):
del self.entities del self.entities
del self.entId2spec if hasattr(self, 'entId2spec'):
del self.spec del self.entId2spec
if hasattr(self, 'spec'):
del self.spec
def createEntityCreator(self): def createEntityCreator(self):
self.notify.error( self.notify.error(