Skip to content

Commit 2862e6e

Browse files
committed
minor fix
1 parent ed056d0 commit 2862e6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mjpc/tasks/cube/solve.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ void CubeSolve::ResidualFn::Residual(const mjModel* model, const mjData* data,
116116
counter += 24;
117117

118118
// ---------- Residual (6) ----------
119-
residual[counter++] = std::max(0, goal_index_) *
120-
12; // each face has ~12 cost to unscramble based on
121-
// current weights, settings, etc.
119+
residual[counter++] =
120+
goal_index_ * 12; // each face has ~12 cost to unscramble based on
121+
// current weights, settings, etc.
122122

123123
// sensor dim sanity check
124124
CheckSensorDim(model, counter);

0 commit comments

Comments
 (0)