From 69585a4824a7814bbe543d624de6c3627e0b927b Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 1 Nov 2015 19:11:14 +0100 Subject: More plumbing of the EntityTransferContext (not yet complete) --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 51c59e9..e20ab50 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -12233,10 +12233,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP cachedresp.WearableData = new AgentCachedTextureResponsePacket.WearableDataBlock[cachedtex.WearableData.Length]; - int maxWearablesLoop = cachedtex.WearableData.Length; - if (maxWearablesLoop > AvatarWearable.MAX_WEARABLES) - maxWearablesLoop = AvatarWearable.MAX_WEARABLES; - int cacheHits = 0; // We need to make sure the asset stored in the bake is available on this server also by it's assetid before we map it to a Cacheid @@ -12250,6 +12246,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP cacheItems = p.Appearance.WearableCacheItems; } + int maxWearablesLoop = cachedtex.WearableData.Length; + if (maxWearablesLoop > cacheItems.Length) + maxWearablesLoop = cacheItems.Length; + if (cacheItems != null) { for (int i = 0; i < maxWearablesLoop; i++) -- cgit v1.1