diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 354994b..a667b80 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -271,7 +271,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
271 | if (m_scene.TryGetScenePresence(remoteClient.AgentId, out presence)) | 271 | if (m_scene.TryGetScenePresence(remoteClient.AgentId, out presence)) |
272 | { | 272 | { |
273 | InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); | 273 | InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); |
274 | item = m_scene.InventoryService.GetItem(item); | 274 | if (m_scene.InventoryService != null) |
275 | item = m_scene.InventoryService.GetItem(item); | ||
275 | 276 | ||
276 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/); | 277 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/); |
277 | } | 278 | } |