Fix #1429 (physical objects do not reset when restarting a race).

This commit is contained in:
hiker 2014-07-28 16:53:08 +10:00
parent 425675bdac
commit d3dbc42174

View File

@ -243,9 +243,9 @@ TrackObject::~TrackObject()
*/
void TrackObject::reset()
{
if (m_presentation != NULL) m_presentation->reset();
if (m_animator != NULL) m_animator->reset();
if (m_presentation ) m_presentation->reset();
if (m_animator ) m_animator->reset();
if(m_physical_object) m_physical_object->reset();
} // reset
// ----------------------------------------------------------------------------