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 b19af97273b..433b107b019 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm @@ -226,8 +226,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)]"