From 033f0138c85b1912491430490995df21387d4baa Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 7 Apr 2008 21:03:03 +0000 Subject: * Preserve original creator's name when an object is given --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index f6f1367..c61afda 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -291,7 +291,7 @@ namespace OpenSim.Region.Environment.Scenes /// Give an inventory item from one avatar to another /// /// - /// + /// ID of the sender of the item /// public void GiveInventoryItem(IClientAPI recipientClient, LLUUID senderId, LLUUID itemId) { @@ -320,7 +320,7 @@ namespace OpenSim.Region.Environment.Scenes // Insert a copy of the item into the recipient InventoryItemBase itemCopy = new InventoryItemBase(); itemCopy.avatarID = recipientClient.AgentId; - itemCopy.creatorsID = recipientClient.AgentId; + itemCopy.creatorsID = senderId; itemCopy.inventoryID = LLUUID.Random(); itemCopy.assetID = item.assetID; itemCopy.inventoryDescription = item.inventoryDescription; -- cgit v1.1