From 4c2d6de88a2a116a3d6affa5f33497f2811b00bd Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Mon, 17 Jul 2023 04:54:44 -0500 Subject: [PATCH] Attempts to allow for timers attached to no objects to be diagnosed (#21686) --- code/controllers/subsystem/SStimer.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/controllers/subsystem/SStimer.dm b/code/controllers/subsystem/SStimer.dm index 90846f74c1b..71680d4cdba 100644 --- a/code/controllers/subsystem/SStimer.dm +++ b/code/controllers/subsystem/SStimer.dm @@ -547,6 +547,8 @@ SUBSYSTEM_DEF(timer) if (callBack.object == GLOBAL_PROC) . = "GLOBAL_PROC" else + if(isnull(callBack.object)) + CRASH("this timer is attached to no object, the attempted proc to call was [callBack.delegate]") . = "[callBack.object.type]" GLOBAL_LIST_EMPTY(timers_by_type)