aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index 26e924f..08f8cee 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -290,11 +290,7 @@ namespace OpenSim.Region.Environment.Scenes
290 /// <param name="item"></param> 290 /// <param name="item"></param>
291 public void AddInventoryItem(TaskInventoryItem item) 291 public void AddInventoryItem(TaskInventoryItem item)
292 { 292 {
293 string name = FindAvailableInventoryName(item.Name); 293 AddInventoryItem(item.Name, item);
294 if (name == String.Empty)
295 return;
296
297 AddInventoryItem(name, item);
298 } 294 }
299 295
300 /// <summary> 296 /// <summary>
@@ -335,6 +331,7 @@ namespace OpenSim.Region.Environment.Scenes
335 331
336 item.ParentID = UUID; 332 item.ParentID = UUID;
337 item.ParentPartID = UUID; 333 item.ParentPartID = UUID;
334 item.Name = name;
338 335
339 lock (m_taskInventory) 336 lock (m_taskInventory)
340 { 337 {