add a extra lenght check

0.9.1.0-post-fixes
UbitUmarov 2019-09-17 20:43:55 +01:00
parent 63b0bd7f6b
commit 645c0c780d
1 changed files with 3 additions and 0 deletions

View File

@ -768,6 +768,9 @@ namespace OpenSim.Framework
} }
} }
if(count > m_wearables.Length)
count = m_wearables.Length;
wears = new OSDArray(count); wears = new OSDArray(count);
for (int i = 0; i < count; ++i) for (int i = 0; i < count; ++i)
wears.Add(m_wearables[i].Pack()); wears.Add(m_wearables[i].Pack());