From 2917d21eb6ce13074019bf99758a92ca3d63a863 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 30 May 2015 15:40:58 +0200 Subject: [PATCH] Restore Kitty's fix to prevent adding wearables twice --- indra/llappearance/llwearabledata.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/indra/llappearance/llwearabledata.cpp b/indra/llappearance/llwearabledata.cpp index 7ca234a9ea..e3891486be 100755 --- a/indra/llappearance/llwearabledata.cpp +++ b/indra/llappearance/llwearabledata.cpp @@ -103,7 +103,16 @@ void LLWearableData::pushWearable(const LLWearableType::EType type, } if (canAddWearable(type)) { - mWearableDatas[type].push_back(wearable); +// [RLVa:KB] - Checked: 2010-06-08 (RLVa-1.2.0) + // Don't add the same wearable twice + U32 idxWearable; + if (!getWearableIndex(wearable, idxWearable)) + { + mWearableDatas[type].push_back(wearable); + } +// [/RLVa:KB] + //mWearableDatas[type].push_back(wearable); + if (trigger_updated) { const BOOL removed = FALSE;