fixes to make VC6 compiler (and its users) happy

This commit is contained in:
erwin.coumans
2009-12-22 21:27:27 +00:00
parent ac3d52d81b
commit 63bb1bab94
2 changed files with 9 additions and 5 deletions

View File

@@ -64,11 +64,13 @@ void btGeneric6DofSpringConstraint::setDamping(int index, btScalar damping)
void btGeneric6DofSpringConstraint::setEquilibriumPoint()
{
calculateTransforms();
for(int i = 0; i < 3; i++)
int i;
for( i = 0; i < 3; i++)
{
m_equilibriumPoint[i] = m_calculatedLinearDiff[i];
}
for(int i = 0; i < 3; i++)
for(i = 0; i < 3; i++)
{
m_equilibriumPoint[i + 3] = m_calculatedAxisAngleDiff[i];
}