From 4a364fcbfbd901068beb7bc210fe8c70f3c23689 Mon Sep 17 00:00:00 2001 From: mochi Date: Wed, 16 Sep 2020 13:12:17 +0200 Subject: [PATCH] Clear null chords from music to fix runtime --- code/modules/instruments/songs/_song.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/instruments/songs/_song.dm b/code/modules/instruments/songs/_song.dm index bc9da6f697c..e1b5a8817dd 100644 --- a/code/modules/instruments/songs/_song.dm +++ b/code/modules/instruments/songs/_song.dm @@ -290,6 +290,8 @@ */ /datum/song/proc/compile_chords() legacy ? compile_legacy() : compile_synthesized() + // Some chords may be null for some reason - exclude them. + listclearnulls(compiled_chords) /** * Plays a chord.