aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-05-24 00:41:47 +0100
committerJustin Clark-Casey (justincc)2013-05-24 00:41:47 +0100
commit02fe05f346f3c4acad0116e702ed197a52b3fb4d (patch)
tree103513bb8628287b7e7b071996634ef0b39f8582 /OpenSim
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-02fe05f346f3c4acad0116e702ed197a52b3fb4d.zip
opensim-SC-02fe05f346f3c4acad0116e702ed197a52b3fb4d.tar.gz
opensim-SC-02fe05f346f3c4acad0116e702ed197a52b3fb4d.tar.bz2
opensim-SC-02fe05f346f3c4acad0116e702ed197a52b3fb4d.tar.xz
Fix issue where llSetPayPrice on either one of a clone prim in the same OpenSimulator session would change the prices on both prims.
This is because the PayPrice array refernence was being memberwise cloned and not the array itself. Addresses http://opensimulator.org/mantis/view.php?id=6639
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index b1c1cbb..ea8c3c5 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1799,6 +1799,8 @@ namespace OpenSim.Region.Framework.Scenes
1799 Array.Copy(Shape.ExtraParams, extraP, extraP.Length); 1799 Array.Copy(Shape.ExtraParams, extraP, extraP.Length);
1800 dupe.Shape.ExtraParams = extraP; 1800 dupe.Shape.ExtraParams = extraP;
1801 1801
1802 dupe.PayPrice = (int[])PayPrice.Clone();
1803
1802 dupe.DynAttrs.CopyFrom(DynAttrs); 1804 dupe.DynAttrs.CopyFrom(DynAttrs);
1803 1805
1804 if (userExposed) 1806 if (userExposed)