summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-12 17:49:55 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-12 17:49:55 +0000
commit290a5846fc56046e7d8d65755250c49da25c9a46 (patch)
treed5bea49f7d1fe9ad2056af0b8dd6a6f95709ba55 /indra/newview
parent41bd792032f651faa61917b7136edf32c79fc64d (diff)
CID-218
Checker: REVERSE_INULL Function: LLAgentWearables::setWearableOutfit(const LLDynamicArray<LLPointer<LLInventoryItem>, (int)32> &, LLDynamicArray<LLWearable *, (int)32>&, int) File: /indra/newview/llagentwearables.cpp
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llagentwearables.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp
index a439720dcf..5d6e88a833 100644
--- a/indra/newview/llagentwearables.cpp
+++ b/indra/newview/llagentwearables.cpp
@@ -1605,6 +1605,9 @@ void LLAgentWearables::setWearableOutfit(const LLInventoryItem::item_array_t& it
LLWearable* new_wearable = wearables[i];
LLPointer<LLInventoryItem> new_item = items[i];
+ llassert(new_wearable);
+ if (!new_wearable) continue;
+
const EWearableType type = new_wearable->getType();
wearables_to_remove[type] = FALSE;