diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 144207fa32..44b76b7ddd 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -749,8 +749,12 @@ namespace OpenSim.Region.Framework.Scenes item.GroupID = m_part.GroupID; if (item.AssetID == UUID.Zero) + item.AssetID = it.AssetID; + + lock (m_items) { - item.AssetID = m_items[item.ItemID].AssetID; + m_items[item.ItemID] = item; + m_inventorySerial++; } m_items[item.ItemID] = item;