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:
parent
817eaf6f2a
commit
5d956568b9
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user