diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-09-21 16:25:34 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-09-21 16:25:34 -0400 |
commit | 2091ce3ae745b15c979e78f853eb0d1777efff18 (patch) | |
tree | 701b0fd30cc6bbbe27b0a736492ae1fc242f7bbb | |
parent | 0d9e46ab0b065d72e0c8d45a773ebbbd71563060 (diff) |
SH-2472 FIX - avoid accessing nonexistent texture entries in lineSegmentItersect
-rwxr-xr-x[-rw-r--r--] | indra/newview/llvovolume.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 6b0a5d8642..380d63c77b 100644..100755 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -3579,7 +3579,7 @@ BOOL LLVOVolume::lineSegmentIntersect(const LLVector3& start, const LLVector3& e bool special_cursor = specialHoverCursor(); for (S32 i = start_face; i < end_face; ++i) { - if (!special_cursor && !pick_transparent && getTE(i)->getColor().mV[3] == 0.f) + if (!special_cursor && !pick_transparent && getTE(i) && getTE(i)->getColor().mV[3] == 0.f) { //don't attempt to pick completely transparent faces unless //pick_transparent is true continue; |