Remove casting nastiness in LSL_Api

This commit is contained in:
Melanie Thielker
2008-09-08 23:13:59 +00:00
parent 1034c1cdc1
commit 6ca7afabca
2 changed files with 80 additions and 76 deletions

View File

@@ -329,6 +329,10 @@ namespace OpenSim.Region.Environment.Scenes
/// </param>
protected void AddInventoryItem(string name, TaskInventoryItem item)
{
name = FindAvailableInventoryName(name);
if (name == String.Empty)
return;
item.ParentID = UUID;
item.ParentPartID = UUID;