OOps - fixed crash in kart again - this time (I hope) correctly :)

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7738 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-02-19 11:44:44 +00:00
parent 3ffe2ecab1
commit 915a9d9864

View File

@ -989,7 +989,7 @@ void Kart::handleMaterialGFX()
// Now the kart is either falling, or driving on a terrain which
// has the 'below surface' flag set. Detect if there is a surface
// on top of the kart.
if(material->hasFallingEffect() && m_camera)
if(m_camera && material && material->hasFallingEffect())
{
m_camera->setMode(Camera::CM_FALLING);
}