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:
parent
e828ffc40b
commit
8a74cfcbdd
@ -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
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user