Fixed a runtime might cause issues.

This might also break logging completely, which, why. This isn't a high-priority log, though, so.
This commit is contained in:
Putnam
2021-02-20 07:36:46 -08:00
parent 257cd6bb34
commit c24c339718

View File

@@ -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