diff --git a/code/modules/clothing/spacesuits/ert.dm b/code/modules/clothing/spacesuits/ert.dm index 8e68fe7461b..ea4bc08eb2d 100644 --- a/code/modules/clothing/spacesuits/ert.dm +++ b/code/modules/clothing/spacesuits/ert.dm @@ -17,9 +17,10 @@ ) /obj/item/clothing/head/helmet/space/hardsuit/ert/Initialize() - var/mob/living/carbon/human/wearer = loc.loc //loc is the hardsuit, so its loc is the wearer - if(ishuman(wearer)) - register_camera(wearer) + if(loc) + var/mob/living/carbon/human/wearer = loc.loc //loc is the hardsuit, so its loc is the wearer + if(ishuman(wearer)) + register_camera(wearer) ..() /obj/item/clothing/head/helmet/space/hardsuit/ert/attack_self(mob/user)