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:
hikerstk
2011-04-01 04:04:34 +00:00
parent d922f47515
commit fbaaa0287e

View File

@@ -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;