From 366e31885dba30f2263251c9afeddf16eb1dfea1 Mon Sep 17 00:00:00 2001 From: michiyamenotehifunana Date: Sun, 11 Aug 2024 22:40:56 +0800 Subject: [PATCH] Fix more CI runtimes --- .../reagents/reagent_containers/food/snacks/meat.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/reagents/reagent_containers/food/snacks/meat.dm b/code/modules/reagents/reagent_containers/food/snacks/meat.dm index 897f2e21bc3..6b3dc7ed11b 100644 --- a/code/modules/reagents/reagent_containers/food/snacks/meat.dm +++ b/code/modules/reagents/reagent_containers/food/snacks/meat.dm @@ -20,9 +20,11 @@ //For initializing genetics information for meat, so it's easy to call. /obj/item/reagent_containers/food/snacks/meat/proc/initialize_genetics(mob/living/meat_source) if(meat_source) //EQUINOX EDIT: basic sanity check to prevent runtimes - inherent_mutations = meat_source.inherent_mutations.Copy() - unnatural_mutations = meat_source.unnatural_mutations.Copy() - source_mob = meat_source.type + if(meat_source.inherent_mutations) //EQUINOX EDIT: more sanity checks to prevent runtimes + inherent_mutations = meat_source.inherent_mutations.Copy() + if(meat_source.unnatural_mutations) //EQUINOX EDIT: more sanity checks to prevent runtimes + unnatural_mutations = meat_source.unnatural_mutations.Copy() + source_mob = meat_source.type // these don't need sanity checks since these are inherent vars that won't be null as long as meat_source exists (ergo, handled in first check already) source_name = meat_source.name /obj/item/reagent_containers/food/snacks/meat/syntiflesh