diff options
Diffstat (limited to 'OpenSim/Framework/MapAndArray.cs')
-rw-r--r-- | OpenSim/Framework/MapAndArray.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Framework/MapAndArray.cs b/OpenSim/Framework/MapAndArray.cs index 41874d0..e6b2800 100644 --- a/OpenSim/Framework/MapAndArray.cs +++ b/OpenSim/Framework/MapAndArray.cs | |||
@@ -173,6 +173,8 @@ namespace OpenSim.Framework | |||
173 | { | 173 | { |
174 | if (m_array == null) | 174 | if (m_array == null) |
175 | { | 175 | { |
176 | if(m_dict.Count == 0) | ||
177 | return new TValue[0]; | ||
176 | m_array = new TValue[m_dict.Count]; | 178 | m_array = new TValue[m_dict.Count]; |
177 | m_dict.Values.CopyTo(m_array, 0); | 179 | m_dict.Values.CopyTo(m_array, 0); |
178 | } | 180 | } |