Fix uninitialized values in btKart
This commit is contained in:
parent
21d9b4bc70
commit
3a64cc9f6a
@ -85,6 +85,7 @@ btWheelInfo& btKart::addWheel(const btVector3& connectionPointCS,
|
||||
m_wheelInfo.push_back( btWheelInfo(ci));
|
||||
|
||||
btWheelInfo& wheel = m_wheelInfo[getNumWheels()-1];
|
||||
memset(&wheel.m_raycastInfo, 0, sizeof(wheel.m_raycastInfo));
|
||||
|
||||
updateWheelTransformsWS(wheel, getChassisWorldTransform(), false);
|
||||
updateWheelTransform(getNumWheels()-1,false);
|
||||
|
Loading…
Reference in New Issue
Block a user