From 89de5e89fe5665133bf9b0c18e9c06fd8a1c69aa Mon Sep 17 00:00:00 2001 From: Krausus Date: Sat, 16 May 2015 02:25:13 -0400 Subject: [PATCH] Fixes vending machine assembly runtime Vending machines would attempt to build_inventory using what appears to have been an old, multi-call method, including a named argument that no longer exists and would runtime. --- code/game/machinery/vending.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index e6bf09f19af..0a48ce5b3bb 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -168,9 +168,7 @@ /obj/machinery/vending/RefreshParts() //Better would be to make constructable child if(component_parts) - build_inventory(products, start_empty = 1) - build_inventory(contraband, 1, 1) - build_inventory(premium, 0, 1, 1) + build_inventory() for(var/obj/item/weapon/vending_refill/VR in component_parts) refill_inventory(VR, product_records)