Fix runtime in bolts hallucination (#56108)

Fixes requesting .len from null when the list was never initialized.
This commit is contained in:
Mothblocks
2021-01-12 13:45:12 +00:00
committed by GitHub
parent 2b7cb0bb53
commit 0a997b3dbc
+1 -1
View File
@@ -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