mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
Fix - Smartfridges do not dispense if the custom amount is 0 (#17515)
* 0 ain't null, missing check * Update smartfridge.dm
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user