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 GitHub
parent 318e0f5fd8
commit cdd1c024f3

View File

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