From 290a5846fc56046e7d8d65755250c49da25c9a46 Mon Sep 17 00:00:00 2001 From: Tofu Linden Date: Fri, 12 Feb 2010 17:49:55 +0000 Subject: CID-218 Checker: REVERSE_INULL Function: LLAgentWearables::setWearableOutfit(const LLDynamicArray, (int)32> &, LLDynamicArray&, int) File: /indra/newview/llagentwearables.cpp --- indra/newview/llagentwearables.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra') 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 new_item = items[i]; + llassert(new_wearable); + if (!new_wearable) continue; + const EWearableType type = new_wearable->getType(); wearables_to_remove[type] = FALSE; -- cgit v1.2.3