[MIRROR] USE SIGNAL_HANDLER REEEEEE (#5921)

* use SIGNAL_HANDLER REEEEEE (#59242)

makes as many procs as i can find use the SIGNAL_HANDLER define which i assumed they all already did

* USE SIGNAL_HANDLER REEEEEE

Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
This commit is contained in:
SkyratBot
2021-05-25 03:42:11 +01:00
committed by GitHub
co-authored by Kylerace
parent d4fcb06342
commit 456f347dfa
121 changed files with 199 additions and 34 deletions
@@ -142,6 +142,7 @@
* Cleans up behavior for when the attached item is deleted or removed.
*/
/obj/structure/training_machine/proc/on_attached_delete()
SIGNAL_HANDLER
UnregisterSignal(attached_item, COMSIG_PARENT_QDELETING)
vis_contents -= attached_item
attached_item = null