Merge pull request #26851 from coiax/food-runtime

Fixes runtime with null nutriment taste data
This commit is contained in:
Leo
2017-05-04 15:31:44 -03:00
committed by GitHub
@@ -60,7 +60,10 @@
// data for nutriment is one or more (flavour -> ratio)
// where all the ratio values adds up to 1
var/list/taste_amounts = data.Copy()
var/list/taste_amounts = list()
if(data)
taste_amounts = data.Copy()
counterlist_scale(taste_amounts, volume)
var/list/other_taste_amounts = newdata.Copy()