Physics-debug would crash when a GP is finished.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11924 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-11-12 06:25:36 +00:00
parent 49f54f2aee
commit def292edcf

View File

@ -531,7 +531,7 @@ void KartModel::update(float rotation_dt, float steer, const float suspension[4]
{ {
if(!m_wheel_node[i]) continue; if(!m_wheel_node[i]) continue;
#ifdef DEBUG #ifdef DEBUG
if(UserConfigParams::m_physics_debug) if(UserConfigParams::m_physics_debug && m_kart)
{ {
// Make wheels that are not touching the ground invisible // Make wheels that are not touching the ground invisible
bool wheel_has_contact = bool wheel_has_contact =