From 9e0f63115a90982ca0d6092aadd3b9c725b50bfb Mon Sep 17 00:00:00 2001 From: CabinetOnFire Date: Thu, 21 May 2026 17:01:14 +0200 Subject: [PATCH] Fixes bots trying to blacklist items already marked for QDEL (#96124) --- code/modules/mob/living/basic/bots/bot_ai.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/basic/bots/bot_ai.dm b/code/modules/mob/living/basic/bots/bot_ai.dm index 509cd4aa355..a5f8202e66e 100644 --- a/code/modules/mob/living/basic/bots/bot_ai.dm +++ b/code/modules/mob/living/basic/bots/bot_ai.dm @@ -63,6 +63,8 @@ source.clear_path_hud(remove_hud = FALSE) /datum/ai_controller/basic_controller/bot/proc/add_to_blacklist(atom/target, duration) + if(QDELETED(target)) + return var/final_duration = duration || blackboard[BB_UNREACHABLE_LIST_COOLDOWN] set_blackboard_key_assoc_lazylist(BB_TEMPORARY_IGNORE_LIST, target, TRUE) addtimer(CALLBACK(src, PROC_REF(remove_from_blacklist), target), final_duration)