summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-11-21 16:44:07 -0700
committerXiaohong Bao <bao@lindenlab.com>2013-11-21 16:44:07 -0700
commit24a6396cd78c27884f5d77d820d9638915212f46 (patch)
tree3fbde5d4a12509f700979a55055b206ef6a59d14 /indra
parentdbfb429bd1800d84d21670addb02745a3030573e (diff)
fix a mouse hovering crash.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llselectmgr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp
index 9aabda42e3..4a5089fd43 100755
--- a/indra/newview/llselectmgr.cpp
+++ b/indra/newview/llselectmgr.cpp
@@ -943,6 +943,10 @@ LLObjectSelectionHandle LLSelectMgr::setHoverObject(LLViewerObject *objectp, S32
iter != objects.end(); ++iter)
{
LLViewerObject* cur_objectp = *iter;
+ if(!cur_objectp || cur_objectp->isDead())
+ {
+ continue;
+ }
LLSelectNode* nodep = new LLSelectNode(cur_objectp, FALSE);
nodep->selectTE(face, TRUE);
mHoverObjects->addNodeAtEnd(nodep);