aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 4ba0e64..265bd2f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -714,8 +714,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
714 714
715 private void ExtendAndAdd(object o) 715 private void ExtendAndAdd(object o)
716 { 716 {
717 Array.Resize(ref m_data, Length + 1); 717 object[] tmp;
718 m_data.SetValue(o, Length - 1); 718 tmp = new object[m_data.Length + 1];
719 m_data.CopyTo(tmp, 0);
720 tmp.SetValue(o, tmp.Length - 1);
721 m_data = tmp;
719 } 722 }
720 723
721 public static list operator +(list a, LSLString s) 724 public static list operator +(list a, LSLString s)