diff --git a/code/modules/clothing/chameleon.dm b/code/modules/clothing/chameleon.dm index 8b2a34a089..e1790dba61 100644 --- a/code/modules/clothing/chameleon.dm +++ b/code/modules/clothing/chameleon.dm @@ -220,10 +220,14 @@ var/obj/item/I = target I.item_state = initial(picked_item.item_state) I.item_color = initial(picked_item.item_color) - if(istype(I, /obj/item/clothing) && istype(initial(picked_item), /obj/item/clothing)) - var/obj/item/clothing/CL = I - var/obj/item/clothing/PCL = picked_item - CL.flags_cover = initial(PCL.flags_cover) + var/obj/item/clothing/CL = target + var/obj/item/clothing/PCL = new picked_item + if(istype(CL) && istype(PCL)) + CL.flags_cover = PCL.flags_cover + CL.flags_inv = PCL.flags_inv + CL.mutantrace_variation = PCL.mutantrace_variation + CL.alternate_worn_icon = PCL.alternate_worn_icon + qdel(PCL) target.icon = initial(picked_item.icon) /datum/action/item_action/chameleon/change/pda/update_item(obj/item/pda/picked_item)