From ece3c04ca3d28d240a4d7207c8ab45a2c9c4e24d Mon Sep 17 00:00:00 2001 From: Emmett Gaines Date: Fri, 7 Feb 2020 13:46:41 -0500 Subject: [PATCH] Fixes an issue where you could unregister someone else's signal (#49224) --- code/datums/components/_component.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/datums/components/_component.dm b/code/datums/components/_component.dm index 88e13ae5ffe..8a4c8f682ff 100644 --- a/code/datums/components/_component.dm +++ b/code/datums/components/_component.dm @@ -203,6 +203,8 @@ if(!islist(sig_type_or_types)) sig_type_or_types = list(sig_type_or_types) for(var/sig in sig_type_or_types) + if(!signal_procs[target][sig]) + continue switch(length(lookup[sig])) if(2) lookup[sig] = (lookup[sig]-src)[1]