From ce3dbba9ba9dbe45e00a5077211a1b08177c5d7a Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 8 Sep 2024 13:16:50 -0700 Subject: [PATCH] FUCK --- code/modules/mob/living/carbon/human/ai/human_ai.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/carbon/human/ai/human_ai.dm b/code/modules/mob/living/carbon/human/ai/human_ai.dm index bf840f102a..3cb016241e 100644 --- a/code/modules/mob/living/carbon/human/ai/human_ai.dm +++ b/code/modules/mob/living/carbon/human/ai/human_ai.dm @@ -23,6 +23,10 @@ GLOBAL_LIST_EMPTY(ai_humans) //INVOKE_ASYNC(src) /mob/living/carbon/human/Destroy(force) + if(ai_brain) + GLOB.ai_humans -= src + else + GLOB.non_ai_humans -= src QDEL_NULL(ai_brain) return ..()