SL-722 - crash fix when leaving region

meow-7.2.2
Brad Payne (Vir Linden) 2017-07-06 18:50:54 +01:00
parent f55667397e
commit 59976ece36
1 changed files with 5 additions and 2 deletions

View File

@ -3414,8 +3414,11 @@ void LLVOVolume::updateAnimatedObjectState(LLViewerObject *old_parent, LLViewerO
}
if (old_volp && old_volp->isAnimatedObject())
{
// W have been removed from an animated object, need to do cleanup.
old_volp->getControlAvatar()->removeAttachmentOverridesForObject(this);
if (old_volp->getControlAvatar())
{
// We have been removed from an animated object, need to do cleanup.
old_volp->getControlAvatar()->removeAttachmentOverridesForObject(this);
}
}
if (old_volp)