diff --git a/code/modules/food_and_drinks/machinery/smartfridge.dm b/code/modules/food_and_drinks/machinery/smartfridge.dm index 3b805bb2768..d3ea6884f11 100644 --- a/code/modules/food_and_drinks/machinery/smartfridge.dm +++ b/code/modules/food_and_drinks/machinery/smartfridge.dm @@ -225,10 +225,7 @@ /// Returns the number of items visible in the fridge. Faster than subtracting 2 lists /obj/machinery/smartfridge/proc/visible_items() - var/component_part_count = 0 - for(var/datum/stock_part/datum_part in component_parts) - component_part_count -= 1 - return contents.len - component_part_count + return contents.len - 1 // Circuitboard /obj/machinery/smartfridge/update_overlays() . = ..()