summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorangela <angela@lindenlab.com>2010-03-01 09:46:29 +0800
committerangela <angela@lindenlab.com>2010-03-01 09:46:29 +0800
commitfec481cb72b2ffe6927adfc15f1f574632b553a8 (patch)
tree9f4bae0cb88d9220e734140c5531340c8b3e0478 /indra
parent1df1be10afd14fe80d491617e175f4586a78f71f (diff)
parent60fde8d512cfe7456ad5756c22f8bd9284c0c14e (diff)
merge
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewertexturelist.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp
index eaef93a81d..d8918bdb73 100644
--- a/indra/newview/llviewertexturelist.cpp
+++ b/indra/newview/llviewertexturelist.cpp
@@ -502,7 +502,10 @@ void LLViewerTextureList::addImageToList(LLViewerFetchedTexture *image)
{
llerrs << "LLViewerTextureList::addImageToList - Image already in list" << llendl;
}
- llassert((mImageList.insert(image)).second == true) ;
+ if((mImageList.insert(image)).second != true)
+ {
+ llerrs << "Error happens when insert image to mImageList!" << llendl ;
+ }
image->setInImageList(TRUE) ;
}
@@ -520,7 +523,10 @@ void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image)
}
llerrs << "LLViewerTextureList::removeImageFromList - Image not in list" << llendl;
}
- llassert(mImageList.erase(image) == 1) ;
+ if(mImageList.erase(image) != 1)
+ {
+ llerrs << "Error happens when remove image from mImageList!" << llendl ;
+ }
image->setInImageList(FALSE) ;
}