Fixed crash with end controller.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10852 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-02-15 20:54:11 +00:00
parent 15445f182c
commit d76777f765

View File

@ -143,7 +143,8 @@ void EndController::reset()
void EndController::newLap(int lap)
{
// This will implicitely trigger setting the first end camera to be active.
m_kart->getCamera()->setMode(Camera::CM_FINAL);
if(m_kart->getCamera())
m_kart->getCamera()->setMode(Camera::CM_FINAL);
} // newLap
//-----------------------------------------------------------------------------