From 5f1fde5f385cdc47900a59c2297a7c77d6bce1cc Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 11 Sep 2019 15:52:26 +0100 Subject: fix bad indexes math --- OpenSim/Framework/AvatarAppearance.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework/AvatarAppearance.cs') diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index ba02dbc..3a2a393 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs @@ -861,8 +861,8 @@ namespace OpenSim.Framework m_wearables[i] = new AvatarWearable((OSDArray)wears[i]); if (wears8Count > 0) { - for (int i = wears.Count; i < wears8Count + wears.Count; ++i) - m_wearables[i] = new AvatarWearable((OSDArray)wears[i]); + for (int i = 0; i < wears8Count; ++i) + m_wearables[i + wears.Count] = new AvatarWearable((OSDArray)wears8[i]); } } else -- cgit v1.1