From a5c09b12f6de71beacbfe733b4393f644169bd66 Mon Sep 17 00:00:00 2001 From: TDSSS <32099540+TDSSS@users.noreply.github.com> Date: Thu, 24 Sep 2020 23:46:18 +0200 Subject: [PATCH] no more errors --- code/modules/clothing/spacesuits/ert.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)