From c21e7a8a8e7fa386925704f9d969facbaaa33354 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 14 Oct 2017 10:16:33 -0700 Subject: [PATCH] fix potentially uninitialized data warning --- src/BulletDynamics/Featherstone/btMultiBody.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/BulletDynamics/Featherstone/btMultiBody.cpp b/src/BulletDynamics/Featherstone/btMultiBody.cpp index 036b226e8..0f15a0c83 100644 --- a/src/BulletDynamics/Featherstone/btMultiBody.cpp +++ b/src/BulletDynamics/Featherstone/btMultiBody.cpp @@ -345,7 +345,10 @@ void btMultiBody::finalizeMultiDof() m_deltaV.resize(6 + m_dofCount); m_realBuf.resize(6 + m_dofCount + m_dofCount*m_dofCount + 6 + m_dofCount); //m_dofCount for joint-space vels + m_dofCount^2 for "D" matrices + delta-pos vector (6 base "vels" + joint "vels") m_vectorBuf.resize(2 * m_dofCount); //two 3-vectors (i.e. one six-vector) for each system dof ("h" matrices) - + for (int i=0;i