Skip to content
Snippets Groups Projects
Commit f3a8087d authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

merge

parents aae0b2ae 908c1222
No related branches found
No related tags found
No related merge requests found
...@@ -832,11 +832,15 @@ void LLWearableHoldingPattern::onWearableAssetFetch(LLWearable *wearable) ...@@ -832,11 +832,15 @@ void LLWearableHoldingPattern::onWearableAssetFetch(LLWearable *wearable)
LLFoundData& data = *iter; LLFoundData& data = *iter;
if(wearable->getAssetID() == data.mAssetID) if(wearable->getAssetID() == data.mAssetID)
{ {
data.mWearable = wearable;
// Failing this means inventory or asset server are corrupted in a way we don't handle. // Failing this means inventory or asset server are corrupted in a way we don't handle.
llassert((data.mWearableType < LLWearableType::WT_COUNT) && (wearable->getType() == data.mWearableType)); if ((data.mWearableType >= LLWearableType::WT_COUNT) || (wearable->getType() != data.mWearableType))
{
llwarns << "recovered wearable but type invalid. inventory wearable type: " << data.mWearableType << " asset wearable type: " << wearable->getType() << llendl;
break; break;
} }
data.mWearable = wearable;
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment