Fixed crash at very end of STK (i.e. after main returns), when trying
to free the static rigid body (only crashes in release mode). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8172 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -29,8 +29,6 @@ struct btWheelContactPoint;
|
||||
btScalar calcRollingFriction(btWheelContactPoint& contactPoint);
|
||||
|
||||
|
||||
static btRigidBody s_fixedObject( 0,0,0);
|
||||
|
||||
btKart::btKart(const btVehicleTuning& tuning,btRigidBody* chassis,
|
||||
btVehicleRaycaster* raycaster, float track_connect_accel )
|
||||
: btRaycastVehicle(tuning, chassis, raycaster)
|
||||
@@ -82,7 +80,7 @@ btScalar btKart::rayCast(btWheelInfo& wheel)
|
||||
wheel.m_raycastInfo.m_contactNormalWS = rayResults.m_hitNormalInWorld;
|
||||
wheel.m_raycastInfo.m_isInContact = true;
|
||||
|
||||
wheel.m_raycastInfo.m_groundObject = &s_fixedObject;//todo for driving on dynamic/movable objects!;
|
||||
wheel.m_raycastInfo.m_groundObject = &getFixedBody();//todo for driving on dynamic/movable objects!;
|
||||
//wheel.m_raycastInfo.m_groundObject = object;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user