From 6c35bd16f254f687f2b415234e36b13f0f8897a8 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 13 Nov 2024 18:47:18 +0100 Subject: fix unit tests --- src/test/PhysicsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/PhysicsTest.cpp') diff --git a/src/test/PhysicsTest.cpp b/src/test/PhysicsTest.cpp index 9ac99aa..edb76e9 100644 --- a/src/test/PhysicsTest.cpp +++ b/src/test/PhysicsTest.cpp @@ -20,7 +20,7 @@ public: vector> transforms = mgr.get_components_by_id(0); if (transforms.empty()) { - auto & entity = mgr.new_object("", "", Vector2{0, 0}, 0, 0); + auto entity = mgr.new_object("", "", Vector2{0, 0}, 0, 0); entity.add_component(Rigidbody::Data{ .mass = 1, .gravity_scale = 1, -- cgit v1.2.3