Fix control reaches end of non-void function in engine_forward.c

PiperOrigin-RevId: 627104708
Change-Id: I790b2bd22fd83ed616605a35f3e7268e28c73aa6
This commit is contained in:
Yuval Tassa
2024-04-22 11:35:27 -07:00
committed by Copybara-Service
parent 8ebc9ed2c8
commit 3ddf1b492a
+7 -9
View File
@@ -258,17 +258,15 @@ static void clampVec(mjtNum* vec, const mjtNum* range, const mjtByte* limited, i
// return number of dofs given joint type
static int jnt_dofnum(mjtJoint type) {
switch (type) {
case mjJNT_HINGE:
case mjJNT_SLIDE:
return 1;
case mjJNT_BALL:
return 3;
case mjJNT_FREE:
if (type == mjJNT_FREE) {
return 6;
}
if (type == mjJNT_BALL) {
return 3;
}
return 1;
}