aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
diff options
context:
space:
mode:
authorCasperW2010-01-20 22:14:43 +0100
committerCasperW2010-01-20 22:14:43 +0100
commit496a8a4f7ca5422daa30913595b6b1a03fa8a59a (patch)
tree0ca3bb64f6105e1876aa9ec9957cf16f42db2892 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
parentFix a major security problem with osSetDynamicTexture which allowed the delet... (diff)
downloadopensim-SC-496a8a4f7ca5422daa30913595b6b1a03fa8a59a.zip
opensim-SC-496a8a4f7ca5422daa30913595b6b1a03fa8a59a.tar.gz
opensim-SC-496a8a4f7ca5422daa30913595b6b1a03fa8a59a.tar.bz2
opensim-SC-496a8a4f7ca5422daa30913595b6b1a03fa8a59a.tar.xz
Fixed an issue with PayPrice sometimes being shared between multiple objects
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 085d61f..a5aecd8 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -8946,12 +8946,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8946 LSLError("List must have at least 4 elements"); 8946 LSLError("List must have at least 4 elements");
8947 return; 8947 return;
8948 } 8948 }
8949 m_host.ParentGroup.RootPart.PayPrice[0]=price; 8949 int[] nPrice = new int[5];
8950 8950 nPrice[0]=price;
8951 m_host.ParentGroup.RootPart.PayPrice[1]=(LSL_Integer)quick_pay_buttons.Data[0]; 8951 nPrice[1] = (LSL_Integer)quick_pay_buttons.Data[0];
8952 m_host.ParentGroup.RootPart.PayPrice[2]=(LSL_Integer)quick_pay_buttons.Data[1]; 8952 nPrice[2] = (LSL_Integer)quick_pay_buttons.Data[1];
8953 m_host.ParentGroup.RootPart.PayPrice[3]=(LSL_Integer)quick_pay_buttons.Data[2]; 8953 nPrice[3] = (LSL_Integer)quick_pay_buttons.Data[2];
8954 m_host.ParentGroup.RootPart.PayPrice[4]=(LSL_Integer)quick_pay_buttons.Data[3]; 8954 nPrice[4] = (LSL_Integer)quick_pay_buttons.Data[3];
8955 m_host.ParentGroup.RootPart.PayPrice = nPrice;
8955 m_host.ParentGroup.HasGroupChanged = true; 8956 m_host.ParentGroup.HasGroupChanged = true;
8956 } 8957 }
8957 8958