Attempts to allow for timers attached to no objects to be diagnosed (#21686)

This commit is contained in:
GDN
2023-07-17 04:54:44 -05:00
committed by GitHub
parent 862f5fdd58
commit 4c2d6de88a
+2
View File
@@ -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)