From 147f3380e0cae440957885fdf9f31164de16c8a3 Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Mon, 9 May 2016 22:50:46 +0100 Subject: [PATCH] fixes a runtime with clothing vars * fixes a runtime with clothing vars * no ghosts, too spooky --- code/modules/clothing/clothing.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 2f678e92241..bec0742032f 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -25,7 +25,8 @@ /obj/item/clothing/Destroy() - dropped() + if(isliving(loc)) + dropped(loc) user_vars_remembered = null //Oh god somebody put REFERENCES in here? not to worry, we'll clean it up return ..()