fixes a runtime with dropping advanced cards from wallets (#62440)

fixes a runtime when transferring advanced ids to/from wallets
Fixes #62036
This commit is contained in:
Seris02
2021-10-31 18:14:53 +00:00
committed by GitHub
parent 3314a36875
commit 4bfde8c33b
+1 -1
View File
@@ -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)