Fix the nullref in scripts - the right way

This commit is contained in:
Melanie Thielker
2015-08-23 17:36:08 +02:00
parent 26094c21fe
commit c4ea4ea000

View File

@@ -713,10 +713,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
private void ExtendAndAdd(object o)
{
object[] tmp;
tmp = new object[m_data.Length + 1];
m_data.CopyTo(tmp, 0);
tmp = new object[Data.Length + 1];
Data.CopyTo(tmp, 0);
tmp.SetValue(o, tmp.Length - 1);
m_data = tmp;
Data = tmp;
}
public static list operator +(list a, LSLString s)