From 0a997b3dbc58c04471aecc129736141f74a75514 Mon Sep 17 00:00:00 2001 From: Mothblocks <35135081+Jared-Fogle@users.noreply.github.com> Date: Tue, 12 Jan 2021 05:45:12 -0800 Subject: [PATCH] Fix runtime in bolts hallucination (#56108) Fixes requesting .len from null when the list was never initialized. --- code/modules/flufftext/Hallucination.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm index 675550e1646..03fee5c8c07 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -759,7 +759,7 @@ GLOBAL_LIST_INIT(hallucination_list, list( lock.airlock = next_airlock LAZYADD(locks, lock) - if (!airlocks_to_hit.len) + if (!LAZYLEN(airlocks_to_hit)) locking = FALSE next_action = 10 SECONDS return