From a1574fe9f6afbb044da080191309fc501dfd06c2 Mon Sep 17 00:00:00 2001 From: James Chen Date: Fri, 25 Jan 2013 20:59:58 +0800 Subject: [PATCH] Reverted this commit (be305f84b62cdde7e921b71c0726b62e0b93b929) since i didn't find the crash. --- cocos2dx/particle_nodes/CCParticleSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2dx/particle_nodes/CCParticleSystem.cpp b/cocos2dx/particle_nodes/CCParticleSystem.cpp index 76392eadba..ee1a43e0a8 100644 --- a/cocos2dx/particle_nodes/CCParticleSystem.cpp +++ b/cocos2dx/particle_nodes/CCParticleSystem.cpp @@ -338,7 +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()->textureForKey(textureName.c_str()); + tex = CCTextureCache::sharedTextureCache()->addImage(textureName.c_str()); // reset the value of UIImage notify CCFileUtils::sharedFileUtils()->setPopupNotify(bNotify); }