From f16956b07d512e9aa866bd1cb523101cf667a146 Mon Sep 17 00:00:00 2001 From: Josip Miskovic Date: Wed, 13 Sep 2023 22:06:51 +0200 Subject: [PATCH] Fix getter for distance joint anchors --- src/api/l_physics_joints.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/l_physics_joints.c b/src/api/l_physics_joints.c index 3d25b626..16856919 100644 --- a/src/api/l_physics_joints.c +++ b/src/api/l_physics_joints.c @@ -172,9 +172,9 @@ static int l_lovrDistanceJointGetAnchors(lua_State* L) { lua_pushnumber(L, anchor1[0]); lua_pushnumber(L, anchor1[1]); lua_pushnumber(L, anchor1[2]); - lua_pushnumber(L, anchor1[0]); - lua_pushnumber(L, anchor1[1]); - lua_pushnumber(L, anchor1[2]); + lua_pushnumber(L, anchor2[0]); + lua_pushnumber(L, anchor2[1]); + lua_pushnumber(L, anchor2[2]); return 6; }