From f4f888c1722309c362b491628d1997369651769e Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Sat, 21 Sep 2013 18:22:59 +0200 Subject: [PATCH] Potential fix for a crash on HG OpenSim teleports by Liru --- indra/newview/llvoavatar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 9f7ad95fd..ee2fff671 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -2530,7 +2530,7 @@ void LLVOAvatar::idleUpdateMisc(bool detailed_update) !(attached_object->mDrawable->getSpatialBridge() && attached_object->mDrawable->getSpatialBridge()->getRadius() < 2.0)); - if (visibleAttachment && attached_object && !attached_object->isDead() && attachment->getValid()) + if (visibleAttachment && attached_object && attached_object->mDrawable && !attached_object->isDead() && attachment->getValid()) { // if selecting any attachments, update all of them as non-damped if (LLSelectMgr::getInstance()->getSelection()->getObjectCount() && LLSelectMgr::getInstance()->getSelection()->isAttachment())