Bugfix: the last searched setting from a materials.xml file would

take effect, not the first one (e.g. the shared one instead of
a track/kart - specific one).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4617 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-02-02 12:01:24 +00:00
parent b7812c298b
commit fcf956afbb

View File

@ -61,6 +61,7 @@ void MaterialManager::setAllMaterialFlags(video::ITexture* t,
if (m_materials[i]->getTexFname()==image)
{
m_materials[i]->setMaterialProperties(&(mb->getMaterial()));
return;
}
} // for i
} // setAllMaterialFlags