summaryrefslogtreecommitdiff
path: root/indra/newview/llappearancemgr.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-02-11 13:43:47 -0500
committerLoren Shih <seraph@lindenlab.com>2010-02-11 13:43:47 -0500
commite612015500b9f17aab3d3c48f8717d9c0f0ae1ca (patch)
tree44073e8c296110b0c9e96704c57e7142a1bbd856 /indra/newview/llappearancemgr.cpp
parent99b29fc394b56c69a07eafeedd213ee360ad684c (diff)
parent39fe664b97b946daf7984b946fede6f04ae731c4 (diff)
automated merge viewer2.0->viewer2.0
Diffstat (limited to 'indra/newview/llappearancemgr.cpp')
-rw-r--r--indra/newview/llappearancemgr.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 0cceba6cb0..018e9a92a0 100644
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -666,6 +666,11 @@ void LLAppearanceManager::filterWearableItems(
if (!item->isWearableType())
continue;
EWearableType type = item->getWearableType();
+ if(type < 0 || type >= WT_COUNT)
+ {
+ LL_WARNS("Appearance") << "Invalid wearable type. Inventory type does not match wearable flag bitfield." << LL_ENDL;
+ continue;
+ }
items_by_type[type].push_back(item);
}