issue #2301: _pTextures --> _textures.

This commit is contained in:
James Chen 2013-06-19 13:40:21 +08:00
parent fa21674f6c
commit 8f33bf7e05
1 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ void CCTextureCacheEmscripten::addImageAsyncCallBack_emscripten(AsyncStruct *dat
#endif
// cache the texture
_pTextures->setObject(texture, filename);
_textures->setObject(texture, filename);
texture->autorelease();
CCObject *target = data->target;
@ -163,7 +163,7 @@ void CCTextureCacheEmscripten::addImageAsync(const char *path, CCObject *target,
// optimization
std::string pathKey = CCFileUtils::sharedFileUtils()->fullPathForFilename(path);
texture = (CCTexture2D*)_pTextures->objectForKey(pathKey.c_str());
texture = (CCTexture2D*)_textures->objectForKey(pathKey.c_str());
std::string fullpath = pathKey;
if (texture != NULL)