From 703840019fc26da153eda82c6289d3c41ae60724 Mon Sep 17 00:00:00 2001 From: ThePiachu Date: Mon, 24 Jun 2024 04:59:36 -0700 Subject: [PATCH] Update code/game/machinery/vending/cm_vending.dm Co-authored-by: harryob <55142896+harryob@users.noreply.github.com> --- code/game/machinery/vending/cm_vending.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/vending/cm_vending.dm b/code/game/machinery/vending/cm_vending.dm index df13d3b90a5b..7db0d652eb14 100644 --- a/code/game/machinery/vending/cm_vending.dm +++ b/code/game/machinery/vending/cm_vending.dm @@ -995,9 +995,9 @@ GLOBAL_LIST_EMPTY(vending_products) if(tmp_list.len > 0) for(var/list/tmp_item as anything in tmp_list) var/item_found = FALSE - for(var/list/LP as anything in listed_products) - if(tmp_item[3] == LP[3]) //We found a box we already have! - LP[2] = tmp_item[2] //Update box amount + for(var/list/product as anything in listed_products) + if(tmp_item[3] == product[3]) //We found a box we already have! + product[2] = tmp_item[2] //Update box amount item_found = TRUE break if(!item_found)