Checker: FORWARD_NULL
Function: LLDriverParam::getNextDistortion(unsigned int *, LLPolyMesh **)
File: /indra/newview/lldriverparam.cpp
meow-7.2.2
Tofu Linden 2010-02-10 17:35:34 +00:00
parent 612df63956
commit 143de8db4e
1 changed files with 6 additions and 0 deletions

View File

@ -432,6 +432,12 @@ const LLVector3* LLDriverParam::getNextDistortion(U32 *index, LLPolyMesh **poly_
}
}
llassert(driven);
if (!driven)
{
return NULL; // shouldn't happen, but...
}
// We're already in the middle of a param's distortions, so get the next one.
const LLVector3* v = driven->mParam->getNextDistortion( index, poly_mesh );
if( (!v) && (iter != mDriven.end()) )