summaryrefslogtreecommitdiff
path: root/indra/newview/llface.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-07-08 15:14:23 -0500
committerDave Parks <davep@lindenlab.com>2010-07-08 15:14:23 -0500
commit3d9413377638886ca2c6616f13be18beac00ebeb (patch)
tree4d1922210cbfe00ad17994d0f4726007c6e4aed2 /indra/newview/llface.h
parentb056f6d7f7f33542177cc2c118743e2a8950e925 (diff)
EXT-8287 Add some null checks and asserts around drawable faces.
Diffstat (limited to 'indra/newview/llface.h')
-rw-r--r--indra/newview/llface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llface.h b/indra/newview/llface.h
index 67dd97e6f7..de533a6864 100644
--- a/indra/newview/llface.h
+++ b/indra/newview/llface.h
@@ -279,7 +279,7 @@ public:
{
bool operator()(const LLFace* const& lhs, const LLFace* const& rhs)
{
- return lhs->mDistance > rhs->mDistance; // farthest = first
+ return !lhs || (rhs && (lhs->mDistance > rhs->mDistance)); // farthest = first
}
};