diff --git a/code/modules/mob/freelook/ai/eye.dm b/code/modules/mob/freelook/ai/eye.dm index 8bc60b819d..a0df415c03 100644 --- a/code/modules/mob/freelook/ai/eye.dm +++ b/code/modules/mob/freelook/ai/eye.dm @@ -36,11 +36,13 @@ eyeobj.owner = src eyeobj.name = "[src.name] (AI Eye)" // Give it a name spawn(5) - eyeobj.loc = src.loc + if(eyeobj) + eyeobj.loc = src.loc /mob/living/silicon/ai/Del() - eyeobj.owner = null - del(eyeobj) // No AI, no Eye + if(eyeobj) + eyeobj.owner = null + del(eyeobj) // No AI, no Eye ..() /atom/proc/move_camera_by_click() diff --git a/code/modules/mob/freelook/eye.dm b/code/modules/mob/freelook/eye.dm index 318ed4da6e..a9fefbc5bd 100644 --- a/code/modules/mob/freelook/eye.dm +++ b/code/modules/mob/freelook/eye.dm @@ -36,7 +36,7 @@ mob/eye/Del() ghost_darkness_images -= ghostimage ghost_sightless_images -= ghostimage del(ghostimage) - ghostimage = null; + ghostimage = null updateallghostimages() ..()