Allow floats in the list for llSetPayPrice and silently convert them to int,

avinationmerge
Melanie 2010-12-11 03:31:57 +01:00
parent 7fef89847c
commit 711db25dfa
1 changed files with 4 additions and 4 deletions

View File

@ -9808,10 +9808,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
int[] nPrice = new int[5]; int[] nPrice = new int[5];
nPrice[0]=price; nPrice[0]=price;
nPrice[1] = (LSL_Integer)quick_pay_buttons.Data[0]; nPrice[1] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[0]);
nPrice[2] = (LSL_Integer)quick_pay_buttons.Data[1]; nPrice[2] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[1]);
nPrice[3] = (LSL_Integer)quick_pay_buttons.Data[2]; nPrice[3] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[2]);
nPrice[4] = (LSL_Integer)quick_pay_buttons.Data[3]; nPrice[4] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[3]);
m_host.ParentGroup.RootPart.PayPrice = nPrice; m_host.ParentGroup.RootPart.PayPrice = nPrice;
m_host.ParentGroup.HasGroupChanged = true; m_host.ParentGroup.HasGroupChanged = true;
} }