diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index e453618..31eb319 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -179,12 +179,16 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
179 | UUID itemID = UUID.Zero; | 179 | UUID itemID = UUID.Zero; |
180 | if (sp != null) | 180 | if (sp != null) |
181 | { | 181 | { |
182 | foreach (SceneObjectGroup grp in sp.GetAttachments(AttachmentPt)) | 182 | foreach(SceneObjectGroup grp in sp.Attachments) |
183 | { | 183 | { |
184 | itemID = grp.GetFromItemID(); | 184 | if (grp.GetAttachmentPoint() == (byte)AttachmentPt) |
185 | if (itemID != UUID.Zero) | 185 | { |
186 | DetachSingleAttachmentToInv(itemID, remoteClient); | 186 | itemID = grp.GetFromItemID(); |
187 | break; | ||
188 | } | ||
187 | } | 189 | } |
190 | if (itemID != UUID.Zero) | ||
191 | DetachSingleAttachmentToInv(itemID, remoteClient); | ||
188 | } | 192 | } |
189 | 193 | ||
190 | if (group.GetFromItemID() == UUID.Zero) | 194 | if (group.GetFromItemID() == UUID.Zero) |