summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-07-16 18:31:58 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-07-16 18:31:58 +0300
commitaa1dd6bb7b5325bb65a0a979e00e6b537621bed9 (patch)
tree9dc5db8c0011d7ab8b6f8a46aa634cd1304ed6f0 /indra/newview
parent417a2d43f39b67d179d69a94c686b5938ed6b3ff (diff)
SL-11597 Fix crash on dead object
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvoavatar.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 5004cbec4c..5584efeb7b 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -8245,16 +8245,19 @@ void LLVOAvatar::updateMeshTextures()
++attachment_iter)
{
LLViewerObject* attached_object = (*attachment_iter);
- attached_object->refreshBakeTexture();
-
- LLViewerObject::const_child_list_t& child_list = attached_object->getChildren();
- for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin();
- iter != child_list.end(); ++iter)
+ if (attached_object && !attached_object->isDead())
{
- LLViewerObject* objectp = *iter;
- if (objectp)
+ attached_object->refreshBakeTexture();
+
+ LLViewerObject::const_child_list_t& child_list = attached_object->getChildren();
+ for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin();
+ iter != child_list.end(); ++iter)
{
- objectp->refreshBakeTexture();
+ LLViewerObject* objectp = *iter;
+ if (objectp && !objectp->isDead())
+ {
+ objectp->refreshBakeTexture();
+ }
}
}
}