XEngine: Fix loading lists from saved state

0.6.0-stable
Melanie Thielker 2008-09-20 20:07:10 +00:00
parent 41728f8a33
commit 5557fb9dd2
1 changed files with 1 additions and 1 deletions

View File

@ -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);