summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-09-20 18:07:49 +0200
committerTor Andersson <tor@ccxvii.net>2024-09-20 18:07:49 +0200
commite20c27ce75d277348a4e1e641355f2a771f012f7 (patch)
tree784743ae1bad7fe24ca1c37b8f31255947703f27
parentf1c13106fb4ae4c1d450acde2240db18f9557d78 (diff)
downloadwilderness-war-e20c27ce75d277348a4e1e641355f2a771f012f7.tar.gz
Handle non-existing as well as zero-length summary lists.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 771cbe1..0521b80 100644
--- a/rules.js
+++ b/rules.js
@@ -315,7 +315,7 @@ function print_plain_summary(verb, list) {
}
function print_summary(summary, verb) {
- if (summary.length > 0) {
+ if (summary && summary.length > 0) {
log(verb)
map_for_each(summary, (s, list) => {
log(">%" + s + "\n" + make_summary(list))