summaryrefslogtreecommitdiff
path: root/indra/newview/llappearancemgr.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2010-02-12 13:46:21 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2010-02-12 13:46:21 -0500
commitdc8a9dc57d41723338a0881a29c5652924977ccf (patch)
tree272cd5624749a1ff720ad9674412060c33978cdb /indra/newview/llappearancemgr.cpp
parent1e76fc2b1f4e735105f2d45d73ea5a92dbad4e05 (diff)
parent6e0ebfe18c431465f6d1bc52e079c7a745419de5 (diff)
merge
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 062e291161..eb4a47664b 100644
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -676,6 +676,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);
}