summaryrefslogtreecommitdiff
path: root/tests/test_physics_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_physics_2d.cpp')
-rw-r--r--tests/test_physics_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_physics_2d.cpp b/tests/test_physics_2d.cpp
index f63b866c3e..f6619db8fd 100644
--- a/tests/test_physics_2d.cpp
+++ b/tests/test_physics_2d.cpp
@@ -199,7 +199,7 @@ protected:
if (mb.is_valid()) {
if (mb->is_pressed()) {
- Point2 p(mb->get_position().x, mb->get_position().y);
+ Point2 p = mb->get_position();
if (mb->get_button_index() == 1) {
ray_to = p;