summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-03-03 11:41:10 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitb9049ea6f0d821bdbb6dcfa46933b1159f1bd872 (patch)
treeaef039a5ce7e17e94a00c75cd33853a58212a229
parent98d0a65e0bf5ec3bce2e7437a1e2d305c575dd98 (diff)
downloadwilderness-war-b9049ea6f0d821bdbb6dcfa46933b1159f1bd872.tar.gz
Show strength of stack when hovering on supreme commander.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 6368d91..d8673d2 100644
--- a/rules.js
+++ b/rules.js
@@ -202,7 +202,7 @@ const ST_LAWRENCE_CANADIAN_MILITIAS = 144;
// Patch up leader/box associations.
const box_from_leader = [];
const leader_from_box = [];
-for (let p = 0; p <= last_french_leader; ++p)
+for (let p = 0; p <= last_piece; ++p)
box_from_leader[p] = 0;
for (let s = first_leader_box; s <= last_leader_box; ++s) {
let p = pieces.findIndex(piece => piece.name === spaces[s].name);