fix for SH-891: crash at LLDrawable::getFace(int)

meow-7.2.2
Xiaohong Bao 2011-02-01 16:01:44 -07:00
parent 125e216603
commit 2dbbf6bdb8
1 changed files with 1 additions and 1 deletions

View File

@ -2165,7 +2165,7 @@ void LLVOVolume::removeMediaImpl(S32 texture_index)
}
//make the face referencing to mMediaImplList[texture_index] to point back to the old texture.
if(mDrawable)
if(mDrawable && texture_index < mDrawable->getNumFaces())
{
LLFace* facep = mDrawable->getFace(texture_index) ;
if(facep)