Commit 9bd033b0 authored by hybrid's avatar hybrid

Fixed the strcmp, found by masterhawk.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@759 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 569dc835
......@@ -394,10 +394,10 @@ IAnimatedMesh* CMY3DMeshFileLoader::createMesh(io::IReadFile* file)
}
// override materials types from they names
if (!strcmp(me.Header.Name, "AlphaChannel-"))
if (!strncmp(me.Header.Name, "AlphaChannel-", 13))
me.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
else
if (!strcmp(me.Header.Name, "SphereMap-"))
if (!strncmp(me.Header.Name, "SphereMap-", 10))
me.MaterialType = video::EMT_SPHERE_MAP;
MaterialEntry.push_back(me);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment