From 095c939c3573b8920f7eadce68bc7e7b00a17454 Mon Sep 17 00:00:00 2001 From: Pin-alternative Date: Mon, 8 Aug 2022 13:26:46 +1000 Subject: [PATCH] mhmm --- modular_splurt/code/datums/components/organ_inflation.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modular_splurt/code/datums/components/organ_inflation.dm b/modular_splurt/code/datums/components/organ_inflation.dm index 43d5c160a2..e6b2c6c5f2 100644 --- a/modular_splurt/code/datums/components/organ_inflation.dm +++ b/modular_splurt/code/datums/components/organ_inflation.dm @@ -92,6 +92,9 @@ belly?.modify_size(new_size) /datum/component/organ_inflation/proc/deflate_organ() + if(!container.owner) + return + switch(container.slot) if(ORGAN_SLOT_PENIS) var/obj/item/organ/genital/penis/peenus = container.owner.getorganslot(ORGAN_SLOT_PENIS) @@ -100,5 +103,5 @@ var/obj/item/organ/genital/breasts/breasts = container.owner.getorganslot(ORGAN_SLOT_BREASTS) breasts?.modify_size(-size) else - var/obj/item/organ/genital/belly/belly = container?.owner?.getorganslot(ORGAN_SLOT_BELLY) + var/obj/item/organ/genital/belly/belly = container.owner.getorganslot(ORGAN_SLOT_BELLY) belly?.modify_size(-size)