Fixed crash (which atm only happens with reverse mode, when the

cow in farm is inivisible).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10857 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-02-15 23:59:05 +00:00
parent 817eaf6f2a
commit 5d956568b9

View File

@ -172,6 +172,7 @@ void LODNode::OnRegisterSceneNode()
{
scene::IMeshBuffer* mb = mesh->getMeshBuffer(n);
video::ITexture* t = mb->getMaterial().getTexture(0);
if(!t) continue;
Material* m = material_manager->getMaterialFor(t, mb);
if (m != NULL)
{