diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 1dd4ca49a9..05a4170a06 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -9808,10 +9808,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } int[] nPrice = new int[5]; nPrice[0]=price; - nPrice[1] = (LSL_Integer)quick_pay_buttons.Data[0]; - nPrice[2] = (LSL_Integer)quick_pay_buttons.Data[1]; - nPrice[3] = (LSL_Integer)quick_pay_buttons.Data[2]; - nPrice[4] = (LSL_Integer)quick_pay_buttons.Data[3]; + nPrice[1] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[0]); + nPrice[2] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[1]); + nPrice[3] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[2]); + nPrice[4] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[3]); m_host.ParentGroup.RootPart.PayPrice = nPrice; m_host.ParentGroup.HasGroupChanged = true; }