diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index b6eddb1..dc43e45 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3844,18 +3844,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3844 | if (World.GetScenePresence(destId) != null) | 3844 | if (World.GetScenePresence(destId) != null) |
3845 | { | 3845 | { |
3846 | // destination is an avatar | 3846 | // destination is an avatar |
3847 | InventoryItemBase agentItem = | 3847 | InventoryItemBase agentItem = World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId); |
3848 | World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId); | ||
3849 | 3848 | ||
3850 | if (agentItem == null) | 3849 | if (agentItem == null) |
3851 | return; | 3850 | return; |
3852 | 3851 | ||
3853 | byte[] bucket = new byte[17]; | 3852 | byte[] bucket = new byte[17]; |
3854 | bucket[0] = (byte)assetType; | 3853 | bucket[0] = (byte)assetType; |
3855 | byte[] objBytes = objId.GetBytes(); | 3854 | byte[] objBytes = agentItem.ID.GetBytes(); |
3856 | Array.Copy(objBytes, 0, bucket, 1, 16); | 3855 | Array.Copy(objBytes, 0, bucket, 1, 16); |
3857 | 3856 | ||
3858 | Console.WriteLine("Giving inventory"); | ||
3859 | GridInstantMessage msg = new GridInstantMessage(World, | 3857 | GridInstantMessage msg = new GridInstantMessage(World, |
3860 | m_host.UUID, m_host.Name+", an object owned by "+ | 3858 | m_host.UUID, m_host.Name+", an object owned by "+ |
3861 | resolveName(m_host.OwnerID)+",", destId, | 3859 | resolveName(m_host.OwnerID)+",", destId, |