Web Dev Solutions

Catalin Mititiuc

From b008407808b4c10a94737f50c3fbde429a026454 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Tue, 30 Apr 2024 21:35:31 -0700 Subject: Clear placing stack on unselect --- src/modules/gameboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3