From f856977c7ba900b242b145fc31a556118c117221 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 18 Sep 2008 17:04:02 +0000 Subject: Fix list reset behavior, and thereby squash one warning --- OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs index 02f6cfd..24e8f85 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs @@ -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]; -- cgit v1.1