mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
Revert "Revert "Fix a possible nullref caused by accessing m_data rather than Data""
Needed after all
This reverts commit 26094c21fe.
This commit is contained in:
@@ -764,10 +764,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
public void Add(object o)
|
||||
{
|
||||
object[] tmp;
|
||||
tmp = new object[m_data.Length + 1];
|
||||
m_data.CopyTo(tmp, 0);
|
||||
tmp[m_data.Length] = o;
|
||||
m_data = tmp;
|
||||
tmp = new object[Data.Length + 1];
|
||||
Data.CopyTo(tmp, 0);
|
||||
tmp[Data.Length] = o; // Since this is tmp.Length - 1
|
||||
Data = tmp;
|
||||
}
|
||||
|
||||
public bool Contains(object o)
|
||||
|
||||
Reference in New Issue
Block a user