From 5557fb9dd2ebb265960d741b1f618bf47e098d36 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 20 Sep 2008 20:07:10 +0000 Subject: XEngine: Fix loading lists from saved state --- 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 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 if (m_Fields[var.Key].FieldType == typeof(LSL_Types.list)) { LSL_Types.list v = (LSL_Types.list)m_Fields[var.Key].GetValue(this); - Object[] data = (Object[])var.Value; + Object[] data = ((LSL_Types.list)var.Value).Data; v.Data = new Object[data.Length]; Array.Copy(data, 0, v.Data, 0, data.Length); m_Fields[var.Key].SetValue(this, v); -- cgit v1.1