Correct the handling of the creator field on inventory gives

0.6.0-stable
Melanie Thielker 2008-11-01 16:49:52 +00:00
parent 4fb2d70373
commit 0bff4215fe
1 changed files with 3 additions and 3 deletions

View File

@ -439,7 +439,7 @@ namespace OpenSim.Region.Environment.Scenes
// Insert a copy of the item into the recipient // Insert a copy of the item into the recipient
InventoryItemBase itemCopy = new InventoryItemBase(); InventoryItemBase itemCopy = new InventoryItemBase();
itemCopy.Owner = recipientClient.AgentId; itemCopy.Owner = recipientClient.AgentId;
itemCopy.Creator = senderId; itemCopy.Creator = item.Creator;
itemCopy.ID = UUID.Random(); itemCopy.ID = UUID.Random();
itemCopy.AssetID = item.AssetID; itemCopy.AssetID = item.AssetID;
itemCopy.Description = item.Description; itemCopy.Description = item.Description;
@ -477,8 +477,8 @@ namespace OpenSim.Region.Environment.Scenes
itemCopy.EveryOnePermissions = item.EveryOnePermissions & item.NextPermissions; itemCopy.EveryOnePermissions = item.EveryOnePermissions & item.NextPermissions;
itemCopy.BasePermissions = item.BasePermissions; itemCopy.BasePermissions = item.BasePermissions;
} }
itemCopy.GroupID = item.GroupID; itemCopy.GroupID = UUID.Zero;
itemCopy.GroupOwned = item.GroupOwned; itemCopy.GroupOwned = false;
itemCopy.Flags = item.Flags; itemCopy.Flags = item.Flags;
itemCopy.SalePrice = item.SalePrice; itemCopy.SalePrice = item.SalePrice;
itemCopy.SaleType = item.SaleType; itemCopy.SaleType = item.SaleType;