Synchronize LLViewerTextureList with V3 to ease future merging

Ansariel 2012-01-05 08:52:03 +01:00
parent e19b45967a
commit 822be9e73d
1 changed files with 4 additions and 2 deletions

View File

@ -530,9 +530,11 @@ void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image)
}
llerrs << "LLViewerTextureList::removeImageFromList - Image not in list" << llendl;
}
if(mImageList.erase(image) != 1)
S32 count = mImageList.erase(image) ;
if(count != 1)
{
llerrs << "Error happens when remove image from mImageList!" << llendl ;
llerrs << "Error happens when remove image from mImageList: " << count << llendl ;
}
image->setInImageList(FALSE) ;