[MIRROR] Fixes GC for songs (#2205)

* Update _song.dm (#55564)

The instrument datum would hold up the song datums preventing them from deletion, this fixes that

* Fixes GC for songs

Co-authored-by: Azarak <azarak10@gmail.com>
This commit is contained in:
SkyratBot
2020-12-17 10:56:11 +01:00
committed by GitHub
parent b6a00dd614
commit 8a104e89e8
+3 -1
View File
@@ -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 ..()