don't unload sounds if they are None

This commit is contained in:
Cary Sandvig 2001-04-02 18:58:30 +00:00
parent 0b0780f65e
commit 242ac509e5
1 changed files with 3 additions and 2 deletions

View File

@ -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)