Bugfix: beach track would crash.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3307 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-03-27 12:34:52 +00:00
parent aaa4214be8
commit 591d997670

View File

@ -83,7 +83,7 @@ IrrDriver::~IrrDriver()
scene::IAnimatedMesh *IrrDriver::getAnimatedMesh(const std::string &filename)
{
scene::IAnimatedMesh *m = m_scene_manager->getMesh(filename.c_str());
setAllMaterialFlags(m);
if(m) setAllMaterialFlags(m);
return m;
} // getAnimatedMesh