Browse Source

default numGarbage to zero
Fixes a toontown crash when you exit

Redmond Urbino 19 years ago
parent
commit
ad030f1b18
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/showbase/GarbageReport.py

+ 1 - 0
direct/src/showbase/GarbageReport.py

@@ -37,6 +37,7 @@ class GarbageReport(Job):
                                 findCycles=findCycles, doneCallback=doneCallback)
                                 findCycles=findCycles, doneCallback=doneCallback)
         self._printing = False
         self._printing = False
         jobMgr.add(self)
         jobMgr.add(self)
+        self.numGarbage = 0
 
 
     def run(self):
     def run(self):
         # do the garbage collection
         # do the garbage collection