From 8f7b0f1f936aab717f1d432ed329b9cdfd9ef6fb Mon Sep 17 00:00:00 2001 From: tpart Date: Fri, 16 Aug 2024 15:04:30 +0200 Subject: Fix error message about music node --- client/audio/sound.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/audio/sound.gd b/client/audio/sound.gd index 90f1ef1e..ea39050a 100644 --- a/client/audio/sound.gd +++ b/client/audio/sound.gd @@ -29,7 +29,7 @@ func play_music(music : String): # If music == "stop", this stops all music for stream in music_node.get_children(): stream.stop() - if music_node.get_node(music) == null: + if music_node.get_node_or_null(music) == null: return else: music_node.get_node(music).play() -- cgit v1.2.3-70-g09d2