From 3d9413377638886ca2c6616f13be18beac00ebeb Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Thu, 8 Jul 2010 15:14:23 -0500 Subject: EXT-8287 Add some null checks and asserts around drawable faces. --- indra/newview/llface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/llface.h') 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 } }; -- cgit v1.2.3