Fix list reset behavior, and thereby squash one warning

0.6.0-stable
Melanie Thielker 2008-09-18 17:04:02 +00:00
parent 0dff3f2383
commit f856977c7b
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
{
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);
Object[] data = new Object[v.Data.Length];