aboutsummaryrefslogtreecommitdiff
path: root/game/src
diff options
context:
space:
mode:
Diffstat (limited to 'game/src')
-rw-r--r--game/src/Game/MusicConductor/MusicConductor.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/game/src/Game/MusicConductor/MusicConductor.gd b/game/src/Game/MusicConductor/MusicConductor.gd
index 7103aff..f7e3b2a 100644
--- a/game/src/Game/MusicConductor/MusicConductor.gd
+++ b/game/src/Game/MusicConductor/MusicConductor.gd
@@ -96,9 +96,14 @@ func setup_compat_song(file_name) -> void:
var song = SongInfo.new()
var stream = SoundSingleton.get_song(file_name)
+ if stream == null:
+ push_error("Audio Stream for compat song %s was null" % file_name)
+ return
+
var metadata = MusicMetadata.new()
metadata.set_from_stream(stream)
var title = metadata.title
+
if title == "":
#use the file name without the extension if there's no metadata
title = file_name.split(".")[0]