summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/play.js b/play.js
index 7a8ab71..6539957 100644
--- a/play.js
+++ b/play.js
@@ -1124,7 +1124,9 @@ function update_lord(ix) {
ui.lord_service[ix].classList.remove("hide")
update_lord_mat(ix)
} else {
- calendar_layout_cylinder[locale - 100].push(ui.lord_cylinder[ix])
+ let t = locale - 100
+ if (t > 17) t = 17
+ calendar_layout_cylinder[t].push(ui.lord_cylinder[ix])
ui.lord_cylinder[ix].classList.remove("hide")
ui.lord_service[ix].classList.add("hide")
}