diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-13 13:21:39 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 7b3fb28c180a5e44fc4632fba890688c101765ab (patch) | |
tree | 6670952f71bbb008e19f45e84ca74ce2fac2b7c1 /play.js | |
parent | 0cfe4b26b00c3e7bc4ca19507dd96f3d7f538145 (diff) | |
download | table-battles-7b3fb28c180a5e44fc4632fba890688c101765ab.tar.gz |
Wheatfield.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -241,8 +241,7 @@ function fill_card_row(top, parent, list) { x = view.self if (view.target === id) x = view.hits - console.log("STICKS", id, x, n) - for (let i = 0; i < x; ++i) + for (let i = 0; i < x && i < n; ++i) add_hit_stick(ui.slot_sticks[id]) for (let i = x; i < n; ++i) add_stick(ui.slot_sticks[id]) |