diff options
author | Melanie Thielker | 2008-09-20 20:07:10 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-20 20:07:10 +0000 |
commit | 5557fb9dd2ebb265960d741b1f618bf47e098d36 (patch) | |
tree | acd6cc9cd3c281a7aee3257bcb8bac8147a46af2 /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | * Tidy up OGS1GridServices (diff) | |
download | opensim-SC-5557fb9dd2ebb265960d741b1f618bf47e098d36.zip opensim-SC-5557fb9dd2ebb265960d741b1f618bf47e098d36.tar.gz opensim-SC-5557fb9dd2ebb265960d741b1f618bf47e098d36.tar.bz2 opensim-SC-5557fb9dd2ebb265960d741b1f618bf47e098d36.tar.xz |
XEngine: Fix loading lists from saved state
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-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); |