don't unload sounds if they are None
This commit is contained in:
parent
0b0780f65e
commit
242ac509e5
|
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue