From 865f01650ce5131fa25e3461d0191f0f1f841e32 Mon Sep 17 00:00:00 2001 From: Archie Date: Tue, 8 Jun 2021 06:54:12 -0300 Subject: [PATCH] This should fix it --- hyperstation/code/obj/fleshlight.dm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hyperstation/code/obj/fleshlight.dm b/hyperstation/code/obj/fleshlight.dm index 6c20175f..0e15c0b3 100644 --- a/hyperstation/code/obj/fleshlight.dm +++ b/hyperstation/code/obj/fleshlight.dm @@ -117,8 +117,10 @@ else option = "Fuck" - var/obj/item/organ/genital/vagina/V = portalunderwear.loc - if(!V || !iscarbon(portalunderwear.loc)) + var/obj/item/organ/genital/vagina/V + if(istype(portalunderwear.loc, /obj/item/organ/genital/vagina)) //Sanity check. Without this it will runtime. + V = portalunderwear.loc + if(!V) return var/mob/living/carbon/human/M = V.owner @@ -179,8 +181,10 @@ //get their looks and vagina colour! cut_overlays()//remove current overlays - var/obj/item/organ/genital/vagina/V = portalunderwear.loc - if(!V || !iscarbon(portalunderwear.loc)) + var/obj/item/organ/genital/vagina/V + if(istype(portalunderwear.loc, /obj/item/organ/genital/vagina)) //Sanity check. Without this it will runtime. + V = portalunderwear.loc + if(!V) useable = FALSE return var/mob/living/carbon/human/H = V.owner