diff --git a/src/BulletSoftBody/btSoftBodyHelpers.cpp b/src/BulletSoftBody/btSoftBodyHelpers.cpp index 9f64de77d..2cf063772 100644 --- a/src/BulletSoftBody/btSoftBodyHelpers.cpp +++ b/src/BulletSoftBody/btSoftBodyHelpers.cpp @@ -1573,9 +1573,9 @@ void btSoftBodyHelpers::extrapolateBarycentricWeights(btSoftBody* psb) const btVector3& p = psb->m_renderNodes[i].m_x; btVector4 bary; btVector4 optimal_bary; - btScalar min_bary_weight = -1e3; + btScalar min_bary_weight = -SIMD_INFINITY; btAlignedObjectArray optimal_parents; - btScalar dist, optimal_dist; + btScalar dist = 0, optimal_dist = 0; for (int j = 0; j < psb->m_faces.size(); ++j) { const btSoftBody::Face& f = psb->m_faces[j]; diff --git a/src/LinearMath/btImplicitQRSVD.h b/src/LinearMath/btImplicitQRSVD.h index 7b4cfaf21..1e1a3e7b4 100644 --- a/src/LinearMath/btImplicitQRSVD.h +++ b/src/LinearMath/btImplicitQRSVD.h @@ -41,7 +41,7 @@ #ifndef btImplicitQRSVD_h #define btImplicitQRSVD_h - +#include #include "btMatrix3x3.h" class btMatrix2x2 {