From 95551e6e543bb9318dfa1d026869eee67f6140c8 Mon Sep 17 00:00:00 2001 From: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Date: Wed, 4 Mar 2020 06:53:27 +1000 Subject: [PATCH] Fixes sofa not refunding any material (#6784) --- code/game/objects/structures/stool_bed_chair_nest/chairs.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm index c651b817d3..9a350dc078 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm @@ -225,8 +225,8 @@ /obj/structure/bed/chair/sofa/update_icon() if(applies_material_colour && sofa_material) - material = get_material_by_name(sofa_material) - color = material.icon_colour + var/material/color_material = get_material_by_name(sofa_material) + color = color_material.icon_colour if(sofa_material == "carpet") name = "red [initial(name)]"