mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
add a extra lenght check
This commit is contained in:
@@ -768,6 +768,9 @@ namespace OpenSim.Framework
|
||||
}
|
||||
}
|
||||
|
||||
if(count > m_wearables.Length)
|
||||
count = m_wearables.Length;
|
||||
|
||||
wears = new OSDArray(count);
|
||||
for (int i = 0; i < count; ++i)
|
||||
wears.Add(m_wearables[i].Pack());
|
||||
|
||||
Reference in New Issue
Block a user