From 26094c21feb8f63d7e6ed46ec2668f213d9dc623 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 23 Aug 2015 17:34:20 +0200 Subject: Revert "Fix a possible nullref caused by accessing m_data rather than Data" My bad! This reverts commit 20326e1947f56c6c39a9e701859c286ebee062e0. --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 0ee39ea..2b93d84 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs @@ -764,10 +764,10 @@ namespace OpenSim.Region.ScriptEngine.Shared public void Add(object o) { object[] tmp; - tmp = new object[Data.Length + 1]; - Data.CopyTo(tmp, 0); - tmp[Data.Length] = o; // Since this is tmp.Length - 1 - Data = tmp; + tmp = new object[m_data.Length + 1]; + m_data.CopyTo(tmp, 0); + tmp[m_data.Length] = o; + m_data = tmp; } public bool Contains(object o) -- cgit v1.1