diff options
Diffstat (limited to 'client/audio/sound.gd')
-rw-r--r-- | client/audio/sound.gd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/audio/sound.gd b/client/audio/sound.gd index 13fde6a2..af23f0cd 100644 --- a/client/audio/sound.gd +++ b/client/audio/sound.gd @@ -29,7 +29,9 @@ func play_music(music : String): # If music == "stop", this stops all music for stream in music_node.get_children(): stream.stop() - if music != "stop": + if music_node.get_node(music) == null: + return + else: music_node.get_node(music).play() func set_volume(value:float): |