summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2011-02-01 17:58:50 -0800
committerMerov Linden <merov@lindenlab.com>2011-02-01 17:58:50 -0800
commit8f253a33e862b30ebbb0065f4c323c866f6fbc57 (patch)
treecdae206750869ed0cb56571b1124ee454cb04127 /indra/newview/llvovolume.cpp
parentfb3ba97f9344d98e3b3927b8fd58d9c0e33ebff4 (diff)
parent0edcdc42f2b4b1370d75d0b78fc3f9834b218449 (diff)
Sync with viewer-development
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 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)