Bugfix: ftl crashed at end of race.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4768 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-02-19 01:00:08 +00:00
parent e828ffc40b
commit 8a74cfcbdd

View File

@ -467,7 +467,9 @@ void Kart::finishedRace(float time)
race_manager->kartFinishedRace(this, time);
setController(new EndController(this, m_controller->getPlayer()));
m_kart_properties->getKartModel()->setEndAnimation(true);
m_camera->setMode(Camera::CM_REVERSE);
// Not all karts have a camera
if(m_camera)
m_camera->setMode(Camera::CM_REVERSE);
} // finishedRace
//-----------------------------------------------------------------------------