Fix casts in llSetPayPrice
parent
cb51fc129e
commit
f8beeb1e93
|
@ -270,8 +270,17 @@ namespace Flotsam.RegionModules.AssetCache
|
|||
{
|
||||
// If the file is already cached, don't cache it, just touch it so access time is updated
|
||||
if (File.Exists(filename))
|
||||
{
|
||||
// We don't really want to know about sharing
|
||||
// violations here. If the file is locked, then
|
||||
// the other thread has updated the time for us.
|
||||
try
|
||||
{
|
||||
File.SetLastAccessTime(filename, DateTime.Now);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
} else {
|
||||
|
||||
// Once we start writing, make sure we flag that we're writing
|
||||
|
|
|
@ -9817,10 +9817,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
}
|
||||
int[] nPrice = new int[5];
|
||||
nPrice[0] = price;
|
||||
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]);
|
||||
nPrice[1] = quick_pay_buttons.GetLSLIntegerItem(0);
|
||||
nPrice[2] = quick_pay_buttons.GetLSLIntegerItem(1);
|
||||
nPrice[3] = quick_pay_buttons.GetLSLIntegerItem(2);
|
||||
nPrice[4] = quick_pay_buttons.GetLSLIntegerItem(3);
|
||||
m_host.ParentGroup.RootPart.PayPrice = nPrice;
|
||||
m_host.ParentGroup.HasGroupChanged = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue