diff --git a/indra/newview/llpanelwearing.cpp b/indra/newview/llpanelwearing.cpp
index c479a8b88610c74834c6436ba10c48459ec8563a..4fc161e5e1df1f4a777b67e00b8be8cfda801b20 100644
--- a/indra/newview/llpanelwearing.cpp
+++ b/indra/newview/llpanelwearing.cpp
@@ -150,7 +150,7 @@ protected:
 				attachments_selected = true;
 			}
 // [RLVa:KB] - Checked: 2012-07-28 (RLVa-1.4.7)
-			if ( (rlv_handler_t::isEnabled()) && (!rlvPredCanRemoveItem(item)) )
+			if ( (rlv_handler_t::isEnabled()) && (!rlvPredCanRemoveItem(*it)) )
 			{
 				rlv_locked_count++;
 			}