diff --git a/direct/src/showbase/Loader.py b/direct/src/showbase/Loader.py index a9243dc75f..4bc81d8a32 100644 --- a/direct/src/showbase/Loader.py +++ b/direct/src/showbase/Loader.py @@ -106,8 +106,9 @@ class Loader: def unloadSound(self, sound): """unloadSound(self, sound) """ - Loader.notify.info("Unloading sound: %s" % (sound) ) - AudioPool.releaseSound(sound) + if sound: + Loader.notify.info("Unloading sound: %s" % (sound) ) + AudioPool.releaseSound(sound)