diff --git a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs index 76ac7ed069..610c560a5c 100644 --- a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs +++ b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs @@ -151,7 +151,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell rootpart.ObjectSaleType = 0; rootpart.SalePrice = 10; - rootpart.ClickAction = Convert.ToByte(0); + rootpart.ClickAction = 0; group.HasGroupChanged = true; rootpart.SendPropertiesToClient(remoteClient); @@ -178,8 +178,21 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell return false; } + // save sell data + int price = rootpart.SalePrice; + byte clickAction = rootpart.ClickAction; + + // reset sale data for the copy + rootpart.ObjectSaleType = 0; + rootpart.SalePrice = 10; + rootpart.ClickAction = 0; + string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(group); + rootpart.ObjectSaleType = saleType; + rootpart.SalePrice = price; + rootpart.ClickAction = clickAction; + string name = rootpart.Name; string desc = rootpart.Description;