Fix the nullref in scripts - the right way

0.8.2-post-fixes
Melanie Thielker 2015-08-23 17:36:08 +02:00
parent 26094c21fe
commit c4ea4ea000
1 changed files with 3 additions and 3 deletions

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)