Fixing bug where it doesn't use embedded texture data, if texture filename is not available

This commit is contained in:
Rohan Kuruvilla 2013-01-24 01:24:31 -08:00
parent 287b5575f4
commit be305f84b6
1 changed files with 1 additions and 2 deletions

View File

@ -338,8 +338,7 @@ bool CCParticleSystem::initWithDictionary(CCDictionary *dictionary, const char *
// set not pop-up message box when load image failed
bool bNotify = CCFileUtils::sharedFileUtils()->isPopupNotify();
CCFileUtils::sharedFileUtils()->setPopupNotify(false);
tex = CCTextureCache::sharedTextureCache()->addImage(textureName.c_str());
tex = CCTextureCache::sharedTextureCache()->textureForKey(textureName.c_str());
// reset the value of UIImage notify
CCFileUtils::sharedFileUtils()->setPopupNotify(bNotify);
}