diff options
Diffstat (limited to 'linden/indra/newview/llinventoryactions.cpp')
-rw-r--r-- | linden/indra/newview/llinventoryactions.cpp | 7 |
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; |