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:
parent
15445f182c
commit
d76777f765
@ -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
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user