Initialize 64bit user pointer, thanks to AndresTraks

See https://github.com/erwincoumans/bullet3/issues/33
This commit is contained in:
erwincoumans
2014-01-29 05:47:45 -08:00
parent 31998c8e7d
commit 51036713f0
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ subject to the following restrictions:
b3TypedConstraint::b3TypedConstraint(b3TypedConstraintType type, int rbA,int rbB) b3TypedConstraint::b3TypedConstraint(b3TypedConstraintType type, int rbA,int rbB)
:b3TypedObject(type), :b3TypedObject(type),
m_userConstraintType(-1), m_userConstraintType(-1),
m_userConstraintId(-1), m_userConstraintPtr((void*)-1),
m_breakingImpulseThreshold(B3_INFINITY), m_breakingImpulseThreshold(B3_INFINITY),
m_isEnabled(true), m_isEnabled(true),
m_needsFeedback(false), m_needsFeedback(false),

View File

@@ -24,7 +24,7 @@ subject to the following restrictions:
btTypedConstraint::btTypedConstraint(btTypedConstraintType type, btRigidBody& rbA) btTypedConstraint::btTypedConstraint(btTypedConstraintType type, btRigidBody& rbA)
:btTypedObject(type), :btTypedObject(type),
m_userConstraintType(-1), m_userConstraintType(-1),
m_userConstraintId(-1), m_userConstraintPtr((void*)-1),
m_breakingImpulseThreshold(SIMD_INFINITY), m_breakingImpulseThreshold(SIMD_INFINITY),
m_isEnabled(true), m_isEnabled(true),
m_needsFeedback(false), m_needsFeedback(false),
@@ -41,7 +41,7 @@ m_jointFeedback(0)
btTypedConstraint::btTypedConstraint(btTypedConstraintType type, btRigidBody& rbA,btRigidBody& rbB) btTypedConstraint::btTypedConstraint(btTypedConstraintType type, btRigidBody& rbA,btRigidBody& rbB)
:btTypedObject(type), :btTypedObject(type),
m_userConstraintType(-1), m_userConstraintType(-1),
m_userConstraintId(-1), m_userConstraintPtr((void*)-1),
m_breakingImpulseThreshold(SIMD_INFINITY), m_breakingImpulseThreshold(SIMD_INFINITY),
m_isEnabled(true), m_isEnabled(true),
m_needsFeedback(false), m_needsFeedback(false),