summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorTofu Buzzard <no-email>2011-02-02 17:42:00 -0800
committerTofu Buzzard <no-email>2011-02-02 17:42:00 -0800
commit46c9f61abdd9326c7a52159370b20800941c72fa (patch)
tree9523a793df8bf78104453d5bd4d4d85585cc1018 /indra/newview/llvovolume.cpp
parente0dd36df5f468a8c6949760e217578852553de21 (diff)
parent5bd5d918caa63338a678e2c94db9195f77867e8a (diff)
merge
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index fe48bf5493..55e68d61f9 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -2287,7 +2287,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)