From 6dafce9a1255317fdc0fbd882695f46b784481f5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 18 Nov 2015 17:35:26 +0000 Subject: [PATCH] fix another variable number of wearable types issue --- .../Avatar/AvatarFactory/AvatarFactoryModule.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index cb210af263..21b6789940 100644 --- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs @@ -870,8 +870,11 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory } // Ignore ruth's assets - if (appearance.Wearables[i][j].ItemID == AvatarWearable.DefaultWearables[i][0].ItemID) - continue; + if (i < AvatarWearable.DefaultWearables.Length) + { + if (appearance.Wearables[i][j].ItemID == AvatarWearable.DefaultWearables[i][0].ItemID) + continue; + } InventoryItemBase baseItem = new InventoryItemBase(appearance.Wearables[i][j].ItemID, userID); baseItem = invService.GetItem(baseItem);