mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
Attempts to allow for timers attached to no objects to be diagnosed (#21686)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user