This commit is contained in:
yangxiao 2015-03-09 17:46:43 +08:00
commit 0eee4e2ab6
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ bool PUMaterialCache::loadMaterialsFromSearchPaths( const std::string &fileFolde
}
std::string fullpath = fileFolder + "/" + file->d_name;
if (strlen(file->d_name) > 9 && strcmp(".material", file->d_name + strlen(file->d_name) - 9))
if (strlen(file->d_name) > 9 && (strcmp(".material", file->d_name + strlen(file->d_name) - 9) == 0))
{
CCLOG("%s", fullpath.c_str());
loadMaterials(fullpath);