mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Fix list reset behavior, and thereby squash one warning
This commit is contained in:
@@ -129,7 +129,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
{
|
||||
m_Fields[field.Name]=field;
|
||||
|
||||
if (field.FieldType is LSL_Types.list) // ref type, copy
|
||||
if (field.FieldType == typeof(LSL_Types.list)) // ref type, copy
|
||||
{
|
||||
LSL_Types.list v = (LSL_Types.list)field.GetValue(this);
|
||||
Object[] data = new Object[v.Data.Length];
|
||||
|
||||
Reference in New Issue
Block a user