diff options
author | UbitUmarov | 2019-09-17 20:43:55 +0100 |
---|---|---|
committer | UbitUmarov | 2019-09-17 20:43:55 +0100 |
commit | 645c0c780d674fca607740d8bcfa81923647a74b (patch) | |
tree | 55a87621f78446dd3d76dc452b634ce2cc6ec60b | |
parent | fix saving appearence to notecard, so they can work on older regions (diff) | |
download | opensim-SC-645c0c780d674fca607740d8bcfa81923647a74b.zip opensim-SC-645c0c780d674fca607740d8bcfa81923647a74b.tar.gz opensim-SC-645c0c780d674fca607740d8bcfa81923647a74b.tar.bz2 opensim-SC-645c0c780d674fca607740d8bcfa81923647a74b.tar.xz |
add a extra lenght check
-rw-r--r-- | OpenSim/Framework/AvatarAppearance.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index 0a15963..87425d8 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs | |||
@@ -768,6 +768,9 @@ namespace OpenSim.Framework | |||
768 | } | 768 | } |
769 | } | 769 | } |
770 | 770 | ||
771 | if(count > m_wearables.Length) | ||
772 | count = m_wearables.Length; | ||
773 | |||
771 | wears = new OSDArray(count); | 774 | wears = new OSDArray(count); |
772 | for (int i = 0; i < count; ++i) | 775 | for (int i = 0; i < count; ++i) |
773 | wears.Add(m_wearables[i].Pack()); | 776 | wears.Add(m_wearables[i].Pack()); |