Try to address Mantis #7689. When adding a scalar to a list, make a copy
as is done when adding another list.0.8.2-post-fixes
parent
c53f732163
commit
62f3399559
|
@ -712,8 +712,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
|||
|
||||
private void ExtendAndAdd(object o)
|
||||
{
|
||||
Array.Resize(ref m_data, Length + 1);
|
||||
m_data.SetValue(o, Length - 1);
|
||||
object[] tmp;
|
||||
tmp = new object[m_data.Length + 1];
|
||||
m_data.CopyTo(tmp, 0);
|
||||
tmp.SetValue(o, tmp.Length - 1);
|
||||
m_data = tmp;
|
||||
}
|
||||
|
||||
public static list operator +(list a, LSLString s)
|
||||
|
|
Loading…
Reference in New Issue