aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llinventoryactions.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llinventoryactions.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llinventoryactions.cpp')
-rw-r--r--linden/indra/newview/llinventoryactions.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llinventoryactions.cpp b/linden/indra/newview/llinventoryactions.cpp
index 69202cb..27afb17 100644
--- a/linden/indra/newview/llinventoryactions.cpp
+++ b/linden/indra/newview/llinventoryactions.cpp
@@ -647,10 +647,11 @@ class LLAttachObject : public inventory_panel_listener_t
647 LLString joint_name = userdata.asString(); 647 LLString joint_name = userdata.asString();
648 LLVOAvatar *avatarp = gAgent.getAvatarObject(); 648 LLVOAvatar *avatarp = gAgent.getAvatarObject();
649 LLViewerJointAttachment* attachmentp = NULL; 649 LLViewerJointAttachment* attachmentp = NULL;
650 for (LLViewerJointAttachment* attachment = avatarp->mAttachmentPoints.getFirstData(); 650 for (LLVOAvatar::attachment_map_t::iterator iter = avatarp->mAttachmentPoints.begin();
651 attachment; 651 iter != avatarp->mAttachmentPoints.end(); )
652 attachment = gAgent.getAvatarObject()->mAttachmentPoints.getNextData())
653 { 652 {
653 LLVOAvatar::attachment_map_t::iterator curiter = iter++;
654 LLViewerJointAttachment* attachment = curiter->second;
654 if (attachment->getName() == joint_name) 655 if (attachment->getName() == joint_name)
655 { 656 {
656 attachmentp = attachment; 657 attachmentp = attachment;