From 6486a7e1096a220e4610ac9e4ab962faaa6c229f Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Wed, 28 Dec 2022 13:57:19 -0600 Subject: [PATCH] sanity check to the ATM qdel (#20009) --- code/modules/economy/economy_machinery/atm.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/economy/economy_machinery/atm.dm b/code/modules/economy/economy_machinery/atm.dm index 20aff703b0b..dbe7dac0f0a 100644 --- a/code/modules/economy/economy_machinery/atm.dm +++ b/code/modules/economy/economy_machinery/atm.dm @@ -124,6 +124,8 @@ ///ensures proper GC of money account /obj/machinery/economy/atm/proc/clear_account() + if(!authenticated_account) // In some situations there will be no authenticated account, such as removing your ID without inputting account information + return UnregisterSignal(authenticated_account, COMSIG_PARENT_QDELETING) authenticated_account = null