Skip to content

Commit

Permalink
Update code/game/machinery/vending/cm_vending.dm
Browse files Browse the repository at this point in the history
Co-authored-by: harryob <[email protected]>
  • Loading branch information
ThePiachu and harryob authored Jun 24, 2024
1 parent 88026e4 commit 7038400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/machinery/vending/cm_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7038400

Please sign in to comment.