From 671b49dabde2204515b6fc3670a9fcec25bdcd02 Mon Sep 17 00:00:00 2001 From: Vi3trice <80771500+Vi3trice@users.noreply.github.com> Date: Thu, 24 Mar 2022 15:21:28 -0400 Subject: [PATCH] Fix - Smartfridges do not dispense if the custom amount is 0 (#17515) * 0 ain't null, missing check * Update smartfridge.dm --- code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm index 2701530e0f4..0b647e98752 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm @@ -273,7 +273,7 @@ var/index = text2num(params["index"]) var/amount = text2num(params["amount"]) - if(isnull(index) || !ISINDEXSAFE(item_quants, index) || isnull(amount)) + if(isnull(index) || !ISINDEXSAFE(item_quants, index) || !amount) return FALSE var/K = item_quants[index] var/count = item_quants[K]