From 9304d937fc4dd793dbfba13be30b0073d1f76597 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Tue, 30 Apr 2024 17:31:38 -0700
Subject: Fix cancel firing arc placement bug
---
src/modules/game/firing_arc.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'src/modules/game/firing_arc.js')
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);
}
--
cgit v1.2.3