Clearing gc issues for a couple objects. (#12508)

* Clearing gc issues for a couple objects.

* Linter check.
This commit is contained in:
Ghom
2020-06-13 02:07:36 +02:00
committed by GitHub
parent a22cc190a0
commit 7dc7961b70
2 changed files with 20 additions and 0 deletions
+9
View File
@@ -187,6 +187,15 @@
if(ID_LOCKED_BANK_ACCOUNT)
registered_account = new /datum/bank_account/remote/non_transferable(pick(GLOB.redacted_strings))
/obj/item/card/id/Destroy()
if(bank_support == ID_LOCKED_BANK_ACCOUNT)
QDEL_NULL(registered_account)
else
registered_account = null
if(my_store)
my_store.my_card = null
my_store = null
return ..()
/obj/item/card/id/vv_edit_var(var_name, var_value)
. = ..()