From a5fd5ac0bc27f736cb93e7ddb52e2044e47a33d2 Mon Sep 17 00:00:00 2001 From: Alphas00 <154434082+Alphas00@users.noreply.github.com> Date: Tue, 23 Jan 2024 22:33:57 +0100 Subject: [PATCH] Genitals update fix (again) Added if to have the genital check if the owner exists when trying to update (skips the inventory update if not and updates the rest, so the body displays and updates correctly even if they are nude) --- modular_citadel/code/modules/arousal/organs/genitals.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modular_citadel/code/modules/arousal/organs/genitals.dm b/modular_citadel/code/modules/arousal/organs/genitals.dm index 3a0818e2..6e37beef 100644 --- a/modular_citadel/code/modules/arousal/organs/genitals.dm +++ b/modular_citadel/code/modules/arousal/organs/genitals.dm @@ -46,7 +46,8 @@ update_size() update_appearance() update_link() - owner.update_inv_w_uniform() //GS13: rebuild overlays on genitals appearance update, for modular clothes + if(owner)//GS13: rebuild overlays on genitals appearance update, for modular clothes + owner.update_inv_w_uniform() //exposure and through-clothing code /mob/living/carbon