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
This commit is contained in:
LemonInTheDark
2022-10-30 08:17:54 -04:00
committed by GitHub
parent b0907d2f7d
commit 5e85be0688
@@ -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)