From c24c339718dfbbeb400374e4a841364bb2532ef7 Mon Sep 17 00:00:00 2001 From: Putnam Date: Sat, 20 Feb 2021 07:36:46 -0800 Subject: [PATCH] Fixed a runtime might cause issues. This might also break logging completely, which, why. This isn't a high-priority log, though, so. --- code/modules/arousal/genitals.dm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/code/modules/arousal/genitals.dm b/code/modules/arousal/genitals.dm index 77b4474863..723049a784 100644 --- a/code/modules/arousal/genitals.dm +++ b/code/modules/arousal/genitals.dm @@ -76,17 +76,20 @@ switch(visibility) if(GEN_VISIBLE_ALWAYS) genital_flags |= GENITAL_THROUGH_CLOTHES - owner.log_message("Exposed their [src]",LOG_EMOTE) if(owner) + owner.log_message("Exposed their [src]",LOG_EMOTE) owner.exposed_genitals += src if(GEN_VISIBLE_NO_CLOTHES) - owner.log_message("Hid their [src] under clothes only",LOG_EMOTE) + if(owner) + owner.log_message("Hid their [src] under clothes only",LOG_EMOTE) if(GEN_VISIBLE_NO_UNDIES) genital_flags |= GENITAL_UNDIES_HIDDEN - owner.log_message("Hid their [src] under underwear",LOG_EMOTE) + if(owner) + owner.log_message("Hid their [src] under underwear",LOG_EMOTE) if(GEN_VISIBLE_NEVER) genital_flags |= GENITAL_HIDDEN - owner.log_message("Hid their [src] completely",LOG_EMOTE) + if(owner) + owner.log_message("Hid their [src] completely",LOG_EMOTE) if(update && owner && ishuman(owner)) //recast to use update genitals proc var/mob/living/carbon/human/H = owner