summaryrefslogtreecommitdiff
path: root/Game/Selection
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Selection')
-rw-r--r--Game/Selection/selection_rectangle.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Game/Selection/selection_rectangle.gd b/Game/Selection/selection_rectangle.gd
index 5e7d1c1..944372d 100644
--- a/Game/Selection/selection_rectangle.gd
+++ b/Game/Selection/selection_rectangle.gd
@@ -16,7 +16,7 @@ var is_active: bool :
get():
return abs(size) > Vector2(1, 1) and Client.state is StateDefault
-@onready var camera: Camera2D = get_tree().get_first_node_in_group("camera")
+@onready var camera: Camera = get_viewport().get_camera_2d()
func _process(_delta: float) -> void: