diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index 936c99bde..7f119d546 100644 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -3485,7 +3485,6 @@ bool LLInventoryCollectFunctor::itemTransferCommonlyAllowed(LLInventoryItem* ite LLVOAvatar* my_avatar = NULL; switch(item->getType()) - { { // I don't even think changing this did anything //case LLAssetType::AT_CALLINGCARD: diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index ee8833004..0dd3aa059 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -6476,10 +6476,15 @@ BOOL LLVOAvatar::isWearingAttachment( const LLUUID& inv_item_id ) BOOL LLVOAvatar::isWearingUnsupportedAttachment( const LLUUID& inv_item_id ) { std::map::iterator end = mUnsupportedAttachmentPoints.end(); - for(std::map::iterator iter = mUnsupportedAttachmentPoints.begin(); iter != end; ++iter) - if((*iter).second == inv_item_id) - return TRUE; - return FALSE; + for(std::map::iterator iter = mUnsupportedAttachmentPoints.begin(); iter != end; ++iter) + { + if((*iter).second == inv_item_id) + { + return TRUE; + } + } + return FALSE; +} //----------------------------------------------------------------------------- // getWornAttachment() //----------------------------------------------------------------------------- diff --git a/indra/newview/llvoavatar.h b/indra/newview/llvoavatar.h index 7e4714d6e..f44cfaa61 100644 --- a/indra/newview/llvoavatar.h +++ b/indra/newview/llvoavatar.h @@ -504,6 +504,9 @@ public: typedef std::map attachment_map_t; attachment_map_t mAttachmentPoints; std::vector > mPendingAttachment; + // + std::map mUnsupportedAttachmentPoints; + // //-------------------------------------------------------------------- // static preferences that are controlled by user settings/menus @@ -581,10 +584,6 @@ private: const static LLUUID sStepSounds[LL_MCODE_END]; const static LLUUID sStepSoundOnLand; - // - std::map mUnsupportedAttachmentPoints; - // - // Xml parse tree of avatar config file static LLXmlTree sXMLTree; // Xml parse tree of avatar skeleton file