From 3653a97c495d9bea069099456b9fe5f4af4ce3cf Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 4 May 2023 20:26:48 +0200 Subject: Handle empty mark list in event 5. --- rules.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 2bffc12..5e7c836 100644 --- a/rules.js +++ b/rules.js @@ -1197,9 +1197,10 @@ function is_adjacent_to_3econ_pipeline(s) { } function is_with_or_adjacent_to_mark(s, list) { - for (let x of list) - if (x === s || is_adjacent(x, s)) - return true + if (list) + for (let x of list) + if (x === s || is_adjacent(x, s)) + return true return false } -- cgit v1.2.3