diff options
author | Loren Shih <seraph@lindenlab.com> | 2010-05-28 10:41:17 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2010-05-28 10:41:17 -0400 |
commit | 955698c7a6d04c1ed895bfc2b9b5acf4e8d5473e (patch) | |
tree | 9600f378eae7f0a8e5bd5b8d309db2d187b2eaaa /indra/newview/llinventoryitemslist.cpp | |
parent | 9cbd65d67966db823b91aa4f133625f978907b74 (diff) | |
parent | 7e0b36d6102f5e285296cd8e0dc6961b5c73c7cb (diff) |
automated merge
Diffstat (limited to 'indra/newview/llinventoryitemslist.cpp')
-rw-r--r-- | indra/newview/llinventoryitemslist.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llinventoryitemslist.cpp b/indra/newview/llinventoryitemslist.cpp index 1c3eb547bb..750cdfb678 100644 --- a/indra/newview/llinventoryitemslist.cpp +++ b/indra/newview/llinventoryitemslist.cpp @@ -388,7 +388,7 @@ void LLInventoryItemsList::refresh() computeDifference(getIDs(), added_items, removed_items); bool add_limit_exceeded = false; - unsigned nadded = 0; + unsigned int nadded = 0; uuid_vec_t::const_iterator it = added_items.begin(); for( ; added_items.end() != it; ++it) @@ -400,8 +400,12 @@ void LLInventoryItemsList::refresh() } LLViewerInventoryItem* item = gInventory.getItem(*it); // Do not rearrange items on each adding, let's do that on filter call - addNewItem(item, false); - ++nadded; + llassert(item); + if (item) + { + addNewItem(item, false); + ++nadded; + } } it = removed_items.begin(); |