From eaa697173e5f4cac2e64571083909a18457c273c Mon Sep 17 00:00:00 2001 From: variableundefined <40092670+variableundefined@users.noreply.github.com> Date: Thu, 2 Aug 2018 14:35:37 +0800 Subject: [PATCH] Fixes customizable runtime --- code/modules/food_and_drinks/food/customizables.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/modules/food_and_drinks/food/customizables.dm b/code/modules/food_and_drinks/food/customizables.dm index 33987737fa2..70027028344 100644 --- a/code/modules/food_and_drinks/food/customizables.dm +++ b/code/modules/food_and_drinks/food/customizables.dm @@ -378,9 +378,9 @@ /obj/item/reagent_containers/food/snacks/customizable/examine(mob/user) ..(user) - var/whatsinside = pick(ingredients) - - to_chat(user, " You think you can see [whatsinside] in there.") + if(LAZYLEN(ingredients)) + var/whatsinside = pick(ingredients) + to_chat(user, " You think you can see [whatsinside] in there.") /obj/item/reagent_containers/food/snacks/customizable/proc/newname() @@ -470,4 +470,3 @@ if(unsorted[it] == i) sorted[it] = i return sorted -