From 4bfde8c33bdfedb1c1fcc40fd65cfcc9f5bc020b Mon Sep 17 00:00:00 2001 From: Seris02 <49109742+Seris02@users.noreply.github.com> Date: Mon, 1 Nov 2021 02:14:53 +0800 Subject: [PATCH] fixes a runtime with dropping advanced cards from wallets (#62440) fixes a runtime when transferring advanced ids to/from wallets Fixes #62036 --- code/game/objects/items/cards_ids.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm index 595c6b6106c..0bac8dab4a9 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -805,7 +805,7 @@ var/obj/item/modular_computer/tablet/slot_holder = slot.holder UnregisterSignal(slot_holder, list(COMSIG_ITEM_EQUIPPED, COMSIG_ITEM_DROPPED)) - if(istype(loc, /obj/item/pda) || istype(OldLoc, /obj/item/storage/wallet)) + if(istype(loc, /obj/item/pda) || istype(loc, /obj/item/storage/wallet)) RegisterSignal(loc, COMSIG_ITEM_EQUIPPED, .proc/update_intern_status) RegisterSignal(loc, COMSIG_ITEM_DROPPED, .proc/remove_intern_status)