aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-18 17:04:02 +0000
committerMelanie Thielker2008-09-18 17:04:02 +0000
commitf856977c7ba900b242b145fc31a556118c117221 (patch)
tree095b9a0de49f135f90d4ec1e6289e9744826854f /OpenSim/Region/ScriptEngine/Shared/Api
parentFrom: Robert Smart (SMARTROB@uk.ibm.com) (diff)
downloadopensim-SC_OLD-f856977c7ba900b242b145fc31a556118c117221.zip
opensim-SC_OLD-f856977c7ba900b242b145fc31a556118c117221.tar.gz
opensim-SC_OLD-f856977c7ba900b242b145fc31a556118c117221.tar.bz2
opensim-SC_OLD-f856977c7ba900b242b145fc31a556118c117221.tar.xz
Fix list reset behavior, and thereby squash one warning
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs2
1 files changed, 1 insertions, 1 deletions
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
129 { 129 {
130 m_Fields[field.Name]=field; 130 m_Fields[field.Name]=field;
131 131
132 if (field.FieldType is LSL_Types.list) // ref type, copy 132 if (field.FieldType == typeof(LSL_Types.list)) // ref type, copy
133 { 133 {
134 LSL_Types.list v = (LSL_Types.list)field.GetValue(this); 134 LSL_Types.list v = (LSL_Types.list)field.GetValue(this);
135 Object[] data = new Object[v.Data.Length]; 135 Object[] data = new Object[v.Data.Length];