diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2011-02-01 16:01:44 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2011-02-01 16:01:44 -0700 |
commit | 2dbbf6bdb88f550a3bc0481e6f2d89d2177ef3a7 (patch) | |
tree | 94db10494b4726e876c5e27998be1b32a1a99c1c /indra/newview/llvovolume.cpp | |
parent | 125e216603e949ac97e4d8b649390f7c41a743c0 (diff) |
fix for SH-891: crash at LLDrawable::getFace(int)
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index f67e3a9770..a207d3e050 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -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) |