From 47a6d4716f3682b54db7d084205854fab4099a78 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Thu, 23 Sep 2004 01:55:09 +0000 Subject: [PATCH] shared list bug fix --- direct/src/showbase/Pool.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/Pool.py b/direct/src/showbase/Pool.py index 5631635249..fb802f594c 100755 --- a/direct/src/showbase/Pool.py +++ b/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):