Fixes runtime in Chemistry-Reagents-Food-Drinks.dm,25: bad index (#7654)

This commit is contained in:
Atermonera
2020-09-18 20:28:12 -07:00
committed by VirgoBot
parent 7ead858a9a
commit c48cd56583

View File

@@ -18,11 +18,14 @@
return
//add the new taste data
if(islist(data))
for(var/taste in newdata)
if(taste in data)
data[taste] += newdata[taste]
else
data[taste] = newdata[taste]
else
initialize_data(newdata)
//cull all tastes below 10% of total
var/totalFlavor = 0