From fe9b057dfe13d405bf6329f7ba963d2a06570736 Mon Sep 17 00:00:00 2001 From: Vyankatesh Ashtekar Date: Sun, 25 Feb 2024 21:17:44 +0530 Subject: [PATCH] minor style corrections --- src/engine/engine_support.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine/engine_support.c b/src/engine/engine_support.c index 977f602f..64be0fba 100644 --- a/src/engine/engine_support.c +++ b/src/engine/engine_support.c @@ -800,11 +800,9 @@ void mj_subtreeAngMomMat(const mjModel *m, mjData *d, mjtNum *agm, int body) // save the location of the subtree COM mju_copy3(r_com, d->subtree_com+3*body); - for (int b=body; b < m->nbody; b++) - { + for (int b=body; b < m->nbody; b++) { // end of body subtree, break from the loop - if (b > body && m->body_parentid[b] < body) - { + if (b > body && m->body_parentid[b] < body) { break; }