diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs | 2 |
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 ba2ec87..ba1aa2a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs | |||
@@ -164,7 +164,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
164 | if (m_Fields[var.Key].FieldType == typeof(LSL_Types.list)) | 164 | if (m_Fields[var.Key].FieldType == typeof(LSL_Types.list)) |
165 | { | 165 | { |
166 | LSL_Types.list v = (LSL_Types.list)m_Fields[var.Key].GetValue(this); | 166 | LSL_Types.list v = (LSL_Types.list)m_Fields[var.Key].GetValue(this); |
167 | Object[] data = (Object[])var.Value; | 167 | Object[] data = ((LSL_Types.list)var.Value).Data; |
168 | v.Data = new Object[data.Length]; | 168 | v.Data = new Object[data.Length]; |
169 | Array.Copy(data, 0, v.Data, 0, data.Length); | 169 | Array.Copy(data, 0, v.Data, 0, data.Length); |
170 | m_Fields[var.Key].SetValue(this, v); | 170 | m_Fields[var.Key].SetValue(this, v); |