From b0c5f5f476d96aa33cde7a4b1182441c6c9270ab Mon Sep 17 00:00:00 2001 From: Rune Knight Date: Tue, 19 Dec 2023 14:42:07 -0800 Subject: [PATCH] wow literally looked at tg code --- code/datums/actions/action.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/datums/actions/action.dm b/code/datums/actions/action.dm index 226749028721..f7ffab519a35 100644 --- a/code/datums/actions/action.dm +++ b/code/datums/actions/action.dm @@ -135,7 +135,8 @@ if(target == owner) RegisterSignal(target, COMSIG_PARENT_QDELETING, PROC_REF(clear_ref)) - owner = null + if(owner == remove_from) + owner = null /// Actually triggers the effects of the action. /// Called when the on-screen button is clicked, for example.