From e929cf610bd75dfa30a784876a04b541d29f5405 Mon Sep 17 00:00:00 2001 From: Ava Date: Wed, 29 Mar 2023 02:13:14 -0400 Subject: [PATCH] Fix for cham clothing with non-null `index` --- code/modules/clothing/chameleon.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/clothing/chameleon.dm b/code/modules/clothing/chameleon.dm index b63a12d718..9918a67cae 100644 --- a/code/modules/clothing/chameleon.dm +++ b/code/modules/clothing/chameleon.dm @@ -24,6 +24,12 @@ return copy //for inheritance +/obj/item/clothing/disguise(newtype) + var/obj/item/clothing/C = ..() + if (istype(C)) + index = C.index + return C + /proc/generate_chameleon_choices(var/basetype, var/blacklist=list()) . = list()