Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-02 16:58:00 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-02 16:58:00 -0700
commitddd32d47c5210eeda6209c6caa36a426a668cc21 (patch)
tree823ae0c533c81a74dcf6f9ef46df89de60eb3346 /src/modules/game
parente0019128a04933870c74740b47016cfed85e6065 (diff)
Generate weapon data dynamically from counters
Diffstat (limited to 'src/modules/game')
-rw-r--r--src/modules/game/soldier.js2
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) {