Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-30 17:31:38 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-30 17:31:38 -0700
commit9304d937fc4dd793dbfba13be30b0073d1f76597 (patch)
tree6b1436f7db775ad2e19ffbcc832428c973781c98 /src/modules/game/firing_arc.js
parentd393934679290ab4e16aa0b4a73408273eb26596 (diff)
Fix cancel firing arc placement bug
Diffstat (limited to 'src/modules/game/firing_arc.js')
-rw-r--r--src/modules/game/firing_arc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/game/firing_arc.js b/src/modules/game/firing_arc.js
index cea8bd0..7a82c43 100644
--- a/src/modules/game/firing_arc.js
+++ b/src/modules/game/firing_arc.js
@@ -294,7 +294,7 @@ function set(svg, size, counter, { x, y }) {
function cancelPlacementListener(e) {
e.preventDefault();
- get(counter).forEach(el => el.remove());
+ get(svg, counter).forEach(el => el.remove());
grid.removeAttribute('style');
svg.removeEventListener('mousemove', positionListener);
}