Merge pull request #8317 from deathride58/herewegoagain

[s] Clamps biogen amount to a sane amount
This commit is contained in:
kevinz000
2019-05-04 23:18:36 -07:00
committed by GitHub
+2
View File
@@ -304,6 +304,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, 50)
var/datum/design/D = locate(href_list["create"])
create_product(D, amount)
updateUsrDialog()