From 07d67729f0052944b94bf1ecc9b0bc9690db20ad Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Fri, 18 Mar 2011 12:48:00 -0700 Subject: Added a null check for corrupt volume lists --- linden/indra/newview/llvovolume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linden') diff --git a/linden/indra/newview/llvovolume.cpp b/linden/indra/newview/llvovolume.cpp index 204d641..7aaf845 100644 --- a/linden/indra/newview/llvovolume.cpp +++ b/linden/indra/newview/llvovolume.cpp @@ -785,7 +785,7 @@ void LLVOVolume::sculpt() for (S32 i = 0; i < mSculptTexture->getNumVolumes(); ++i) { LLVOVolume* volume = (*(mSculptTexture->getVolumeList()))[i]; - if (volume != this && volume->getVolume() == getVolume()) + if (volume && volume != this && volume->getVolume() == getVolume()) { gPipeline.markRebuild(volume->mDrawable, LLDrawable::REBUILD_GEOMETRY, FALSE); } -- cgit v1.1