issue #854: fix warning

This commit is contained in:
minggo 2011-11-28 10:12:31 +08:00
parent ab7db20809
commit 8fd6a7298f
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ void CCTextureCache::addImageAsync(const char *path, SelectorProtocol *target, S
texture = m_pTextures->objectForKey(pathKey);
std::string fullpath = pathKey;
if (texture = m_pTextures->objectForKey(pathKey))
if (texture != NULL)
{
if (target && selector)
{