index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-05-02 16:58:00 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-05-02 16:58:00 -0700 |
commit | ddd32d47c5210eeda6209c6caa36a426a668cc21 (patch) | |
tree | 823ae0c533c81a74dcf6f9ef46df89de60eb3346 /src/modules/game | |
parent | e0019128a04933870c74740b47016cfed85e6065 (diff) |
Generate weapon data dynamically from counters
Diffstat (limited to 'src/modules/game')
-rw-r--r-- | src/modules/game/soldier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js index 1555c19..c5b2323 100644 --- a/src/modules/game/soldier.js +++ b/src/modules/game/soldier.js @@ -43,7 +43,7 @@ function updatePlacement(cell, selected, clone) { selected.dataset.previous = prevCoords; cell.appendChild(selected); - selected.childNodes.forEach(n => { + Array.from(selected.children).forEach(n => { if (n.classList.contains('removed')) { n.remove(); } else if ('preexisting' in n.dataset) { |