diff --git a/direct/src/showbase/GarbageReport.py b/direct/src/showbase/GarbageReport.py index 6900fd328b..811b69444e 100755 --- a/direct/src/showbase/GarbageReport.py +++ b/direct/src/showbase/GarbageReport.py @@ -37,6 +37,7 @@ class GarbageReport(Job): findCycles=findCycles, doneCallback=doneCallback) self._printing = False jobMgr.add(self) + self.numGarbage = 0 def run(self): # do the garbage collection