clamp the biogen amount to within the limits allowed by the UI (#43792)

This commit is contained in:
oranges
2019-05-03 13:20:15 -04:00
committed by Emmett Gaines
parent 78170616a9
commit 223e5429ef
+2
View File
@@ -309,6 +309,8 @@
else if(href_list["create"])
var/amount = (text2num(href_list["amount"]))
//Can't be outside these (if you change this keep a sane limit)
amount = CLAMP(amount, 1, 10)
var/datum/design/D = locate(href_list["create"])
create_product(D, amount)
updateUsrDialog()