variable name error

This commit is contained in:
yangxiao 2015-02-16 11:18:54 +08:00
parent 180cee96d8
commit 6c73e22a32
1 changed files with 2 additions and 2 deletions

View File

@ -179,8 +179,8 @@ bool PUParticle3DMaterialCache::loadMaterialsFromSearchPaths( const std::string
continue;
}
std::string fullpath = fileFolder + "/" + ent->d_name;
if (strlen(ent->d_name) > 9 && strcmp(".material", ent->d_name + strlen(ent->d_name) - 9))
std::string fullpath = fileFolder + "/" + file->d_name;
if (strlen(file->d_name) > 9 && strcmp(".material", file->d_name + strlen(file->d_name) - 9))
{
CCLOG("%s", fullpath.c_str());
loadMaterials(fullpath);