Fix list reset behavior, and thereby squash one warning
parent
0dff3f2383
commit
f856977c7b
|
@ -129,7 +129,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
{
|
{
|
||||||
m_Fields[field.Name]=field;
|
m_Fields[field.Name]=field;
|
||||||
|
|
||||||
if (field.FieldType is LSL_Types.list) // ref type, copy
|
if (field.FieldType == typeof(LSL_Types.list)) // ref type, copy
|
||||||
{
|
{
|
||||||
LSL_Types.list v = (LSL_Types.list)field.GetValue(this);
|
LSL_Types.list v = (LSL_Types.list)field.GetValue(this);
|
||||||
Object[] data = new Object[v.Data.Length];
|
Object[] data = new Object[v.Data.Length];
|
||||||
|
|
Loading…
Reference in New Issue