Fixes runtime with null nutriment taste data

This commit is contained in:
Jack Edge
2017-05-03 15:21:27 +01:00
parent 87bdd1efe8
commit 952d726ef9
@@ -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()