fixed bug in track-gui-items cleanup

This commit is contained in:
Darren Ranalli 2006-05-04 20:13:47 +00:00
parent a8697a4594
commit 0223f1cb38
1 changed files with 1 additions and 1 deletions

View File

@ -1010,7 +1010,7 @@ class DirectGuiWidget(DirectGuiBase, NodePath):
def destroy(self):
if __dev__:
if hasattr(base, 'guiItems'):
if self in base.guiItems:
if self.guiId in base.guiItems:
del base.guiItems[self.guiId]
else:
base.notify.warning(