From 41bbffa27b37989c6aea0d2bf274f75ddcf550cd Mon Sep 17 00:00:00 2001 From: AnturK Date: Fri, 16 Apr 2021 00:15:15 +0200 Subject: [PATCH] Fixes bolt hallucination runtime. (#58438) --- code/modules/flufftext/Hallucination.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm index f63777503d5..9f21c91d500 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -745,6 +745,10 @@ GLOBAL_LIST_INIT(hallucination_list, list( count++ LAZYADD(airlocks_to_hit, A) + if(!LAZYLEN(airlocks_to_hit)) //no valid airlocks in sight + qdel(src) + return + START_PROCESSING(SSfastprocess, src) /datum/hallucination/bolts/process(delta_time)