From a071ff036d0966f409c440aabd2f8507d8adc604 Mon Sep 17 00:00:00 2001 From: Azarak Date: Thu, 17 Dec 2020 10:43:10 +0100 Subject: [PATCH] Update _song.dm (#55564) The instrument datum would hold up the song datums preventing them from deletion, this fixes that --- code/modules/instruments/songs/_song.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/instruments/songs/_song.dm b/code/modules/instruments/songs/_song.dm index 059d7f142dc..eb6bc977329 100644 --- a/code/modules/instruments/songs/_song.dm +++ b/code/modules/instruments/songs/_song.dm @@ -146,7 +146,9 @@ stop_playing() SSinstruments.on_song_del(src) lines = null - using_instrument = null + if(using_instrument) + using_instrument.songs_using -= src + using_instrument = null allowed_instrument_ids = null parent = null return ..()