[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>
This commit is contained in:
SkyratBot
2021-01-13 04:24:14 +01:00
committed by GitHub
parent a79ce8b218
commit d13f4fbbe7
+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