index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r-- | src/modules/gameboard.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js index b7ef148..d4592fc 100644 --- a/src/modules/gameboard.js +++ b/src/modules/gameboard.js @@ -222,7 +222,7 @@ export function start(el) { const toPlace = placing.pop(), occupant = getCellOccupant(cell); - if (toPlace && occupant && toPlace == occupant) { + if (toPlace && occupant && toPlace === occupant) { const { number, allegiance } = toPlace.dataset, selector = `[data-allegiance="${allegiance}"][data-number="${number}"]`; |