From 105ac7346455f84ed16f0b07749ad688e29b4ba6 Mon Sep 17 00:00:00 2001 From: Kitty Barnett <none@none> Date: Sat, 4 Sep 2010 04:07:10 +0200 Subject: [PATCH] [Appearance/Misc] - fixed : LLWearableBridge::removeAllClothesFromAvatar() doesn't remove all clothing from the avatar --HG-- branch : Appearance-Misc --- indra/newview/llinventorybridge.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 81174730c7..78327a25fb 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -4708,7 +4708,10 @@ void LLWearableBridge::removeAllClothesFromAvatar() if (itype == LLWearableType::WT_SHAPE || itype == LLWearableType::WT_SKIN || itype == LLWearableType::WT_HAIR || itype == LLWearableType::WT_EYES) continue; - for (S32 index = gAgentWearables.getWearableCount(itype)-1; index >= 0 ; --index) +// for (S32 index = gAgentWearables.getWearableCount(itype)-1; index >= 0 ; --index) +// [SL:KB] - Patch: Appearance-Misc | Checked: 2010-09-04 (Catznip-2.1.2a) | Added: Catznip-2.1.2a + for (S32 index = gAgentWearables.getWearableCount((LLWearableType::EType)itype)-1; index >= 0 ; --index) +// [/SL:KB] { LLViewerInventoryItem *item = dynamic_cast<LLViewerInventoryItem*>( gAgentWearables.getWearableInventoryItem((LLWearableType::EType)itype, index)); -- GitLab