summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-01 13:03:44 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-01 13:09:02 +0100
commitf66ff2991dbaa5a8496c37397e6610d4a3b2aaeb (patch)
tree1e0c6855a6e3acd06bfbf6a1ee84f57d40ad5fe4
parentbe19e80215d2520e567c62a143c5a404b68b59e6 (diff)
downloadplantagenet-f66ff2991dbaa5a8496c37397e6610d4a3b2aaeb.tar.gz
Fix typo when constructing command cards for current card display.
-rw-r--r--play.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/play.js b/play.js
index 53db117..5758e71 100644
--- a/play.js
+++ b/play.js
@@ -913,9 +913,9 @@ function build_map() {
ui.card_cc = []
for (let i = 0; i < 14; ++i)
- ui.card_cc[i] = build_div(null, "card cc york " + data.lords[view.command].id)
+ ui.card_cc[i] = build_div(null, "card cc york " + data.lords[i].id)
for (let i = 14; i < 28; ++i)
- ui.card_cc[i] = build_div(null, "card cc lancaster " + data.lords[view.command].id)
+ ui.card_cc[i] = build_div(null, "card cc lancaster " + data.lords[i].id)
}
// === UPDATE UI ===