From 5e85be0688a8ea68c12523013b1bc77620de1dda Mon Sep 17 00:00:00 2001 From: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Date: Sun, 30 Oct 2022 05:17:54 -0700 Subject: [PATCH] Adds a crash to camera logic if we attempt to add a qdeleting camera (#70878) * Adds a crash to camera logic if we attempt to add a qdeleting camera. It's causing harddels and runtimes and I want to know why --- code/modules/mob/living/silicon/ai/freelook/cameranet.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm index 1ee8705bd7c..2fdd61aa89a 100644 --- a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm +++ b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm @@ -123,8 +123,8 @@ GLOBAL_DATUM_INIT(cameranet, /datum/cameranet, new) * If you want to update the chunks around an object, without adding/removing a camera, use choice 2. */ /datum/cameranet/proc/majorChunkChange(atom/c, choice) - if(!c) - return + if(QDELETED(c) && choice == 1) + CRASH("Tried to add a qdeleting camera to the net") var/turf/T = get_turf(c) if(T)