From 8a74cfcbdd86715b3b18ed54f392581fdb493aa9 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Fri, 19 Feb 2010 01:00:08 +0000 Subject: [PATCH] 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 --- src/karts/kart.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 67b772933..998ba21b0 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -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 //-----------------------------------------------------------------------------