diff --git a/include/bounce/dynamics/cloth/sparse_sym_mat33.h b/include/bounce/dynamics/cloth/sparse_sym_mat33.h index af9f94b..b42f733 100644 --- a/include/bounce/dynamics/cloth/sparse_sym_mat33.h +++ b/include/bounce/dynamics/cloth/sparse_sym_mat33.h @@ -245,7 +245,7 @@ inline const b3Mat33& b3SparseSymMat33::operator()(u32 i, u32 j) const break; } - if (column == i) + if (column == j) { return v->value; } @@ -444,4 +444,4 @@ inline b3DenseVec3 operator*(const b3SparseSymMat33& A, const b3DenseVec3& v) return result; } -#endif \ No newline at end of file +#endif