aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-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 ca81af1..f14a8fb 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -712,8 +712,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
712 712
713 private void ExtendAndAdd(object o) 713 private void ExtendAndAdd(object o)
714 { 714 {
715 Array.Resize(ref m_data, Length + 1); 715 object[] tmp;
716 m_data.SetValue(o, Length - 1); 716 tmp = new object[m_data.Length + 1];
717 m_data.CopyTo(tmp, 0);
718 tmp.SetValue(o, tmp.Length - 1);
719 m_data = tmp;
717 } 720 }
718 721
719 public static list operator +(list a, LSLString s) 722 public static list operator +(list a, LSLString s)