Unregistering with a list of lists will fail, but not loudly, which causes some really painful errors. Let's make a stack trace for it, and fix the one case I know of (#59434)

This commit is contained in:
LemonInTheDark
2021-06-02 17:28:55 -07:00
committed by GitHub
parent bbcbfcb4e7
commit b3d1af2866
2 changed files with 8 additions and 4 deletions
+2
View File
@@ -221,6 +221,8 @@
sig_type_or_types = list(sig_type_or_types)
for(var/sig in sig_type_or_types)
if(!signal_procs[target][sig])
if(!istext(sig))
stack_trace("We're unregistering with something that isn't a valid signal \[[sig]\], you fucked up")
continue
switch(length(lookup[sig]))
if(2)