From 7d557ae7d88ce2531d6f04f1b0b73e21e1e359f0 Mon Sep 17 00:00:00 2001 From: AlManiak Date: Thu, 19 Sep 2024 18:02:24 +0200 Subject: [PATCH] isNull check --- code/modules/mob/living/carbon/human/species.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm index c06a1bfd..669d1517 100644 --- a/code/modules/mob/living/carbon/human/species.dm +++ b/code/modules/mob/living/carbon/human/species.dm @@ -1727,10 +1727,11 @@ GLOBAL_LIST_EMPTY(roundstart_races) H.throw_alert("fullness", /obj/screen/alert/stuffed) if(FULLNESS_LEVEL_NOMOREPLZ to INFINITY) H.throw_alert("fullness", /obj/screen/alert/beegbelly) - + // Update here for changing belly to match stuffed-ness - var/obj/item/organ/genital/belly/belly = H.getorganslot("belly") - belly.update() + var/obj/item/organ/genital/belly/B= H.getorganslot("belly") + if(!isnull(B)) + B.update() switch(H.fatness) if(FATNESS_LEVEL_BLOB to INFINITY)