Restore Kitty's fix to prevent adding wearables twice

Ansariel 2015-05-30 15:40:58 +02:00
parent a31c89d590
commit 2917d21eb6
1 changed files with 10 additions and 1 deletions

View File

@ -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;