From d13f4fbbe79ae9e083752ae7b492b7d406fa044f Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 13 Jan 2021 04:24:14 +0100 Subject: [PATCH] [MIRROR] Fix runtime in bolts hallucination (#2666) * Fix runtime in bolts hallucination (#56108) Fixes requesting .len from null when the list was never initialized. * Fix runtime in bolts hallucination Co-authored-by: Mothblocks <35135081+Jared-Fogle@users.noreply.github.com> --- 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