mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixes runtime in Chemistry-Reagents-Food-Drinks.dm,25: bad index (#7654)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user