Fixed replay using the --ghost command line option.

This commit is contained in:
hiker
2014-03-03 13:14:56 +11:00
parent f1ecf999b2
commit 7cdc064640

View File

@@ -355,8 +355,9 @@ void Kart::reset()
// In case that the kart was in the air, in which case its
// linear damping is 0
m_body->setDamping(m_kart_properties->getChassisLinearDamping(),
m_kart_properties->getChassisAngularDamping() );
if(m_body)
m_body->setDamping(m_kart_properties->getChassisLinearDamping(),
m_kart_properties->getChassisAngularDamping() );
if(m_terrain_sound)
{