Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-30 21:35:31 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-30 21:35:31 -0700
commitb008407808b4c10a94737f50c3fbde429a026454 (patch)
tree6e30a9ca630fdad8e6387cc0afb10c3953916d57
parenta3bf726e40fe4ed529bdefa83c977af4b72791a9 (diff)
Clear placing stack on unselect
-rw-r--r--src/modules/gameboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index 2df5b36..e20949a 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -289,9 +289,9 @@ export function select(selected) {
export function unSelect() {
const selected = getSelected();
+ placing = [];
if (selected) {
- placing = [];
getSelected().classList.remove(soldier.getSelectedClass());
clearSightLine();
firingArc.clipAll(svg);