minor fix

This commit is contained in:
yunfeibai
2017-02-03 14:44:25 -08:00
parent abbd3ad884
commit df07f2aaaa

View File

@@ -4493,8 +4493,9 @@ static PyObject* pybullet_calculateInverseKinematics(PyObject* self,
if (numJoints && (szJointDamping == numJoints))
{
int szInBytes = sizeof(double) * numJoints;
int i;
jointDamping = (double*)malloc(szInBytes);
for (int i = 0; i < numJoints; i++)
for (i = 0; i < numJoints; i++)
{
jointDamping[i] = pybullet_internalGetFloatFromSequence(jointDampingObj, i);
}