Null checks, initilizations, etc

This commit is contained in:
Shyotl
2011-03-05 18:00:16 -06:00
parent 77117d7463
commit 9f434ab384
12 changed files with 51 additions and 29 deletions

View File

@@ -349,6 +349,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()) )