Fix potential assertion failure/crash

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-01-20 00:43:05 +00:00
parent 18ead10df9
commit 01482b018b

View File

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