Browse Source

shared list bug fix

Joe Shochet 21 years ago
parent
commit
47a6d4716f
1 changed files with 5 additions and 2 deletions
  1. 5 2
      direct/src/showbase/Pool.py

+ 5 - 2
direct/src/showbase/Pool.py

@@ -21,8 +21,11 @@ class Pool:
 
     notify = DirectNotifyGlobal.directNotify.newCategory("Pool")
     
-    def __init__(self, free=[]):
-        self.__free = free
+    def __init__(self, free=None):
+        if free:
+            self.__free = free
+        else:
+            self.__free = []
         self.__used = []
 
     def add(self, item):