diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-05 12:17:58 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-05 12:17:58 +0100 |
commit | e2b51b8884d1003a3312276611b8a8c34123bc36 (patch) | |
tree | 2a62d60e216e172685670230e544103444e28c4c /indra/newview/lldrawable.h | |
parent | e2e329b2e22dbab52d12ff309fb78533cb52c8e9 (diff) | |
parent | 7bb6532e93b7536a9a11cf19db10ba0cda1d99c3 (diff) |
merge from viewer-public
Diffstat (limited to 'indra/newview/lldrawable.h')
-rw-r--r-- | indra/newview/lldrawable.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/lldrawable.h b/indra/newview/lldrawable.h index 651dabff9e..c3c6cbe12f 100644 --- a/indra/newview/lldrawable.h +++ b/indra/newview/lldrawable.h @@ -313,8 +313,10 @@ private: inline LLFace* LLDrawable::getFace(const S32 i) const { - llassert((U32)i < mFaces.size()); - llassert(mFaces[i]); + if ((U32) i >= mFaces.size()) + { + return NULL; + } return mFaces[i]; } |