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
user_profiles
Justin Clark-Casey (justincc) 2013-05-24 00:41:47 +01:00
parent e597a7d94e
commit 02fe05f346
1 changed files with 2 additions and 0 deletions

View File

@ -1799,6 +1799,8 @@ namespace OpenSim.Region.Framework.Scenes
Array.Copy(Shape.ExtraParams, extraP, extraP.Length);
dupe.Shape.ExtraParams = extraP;
dupe.PayPrice = (int[])PayPrice.Clone();
dupe.DynAttrs.CopyFrom(DynAttrs);
if (userExposed)