From 3ec32cf44ace240f96ba9afea79d48acdb0110ee Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 22 Oct 2014 03:51:12 +0200 Subject: [PATCH] Use legacy collectLinkedItems() method to collect linked items so it also works with broken links --- indra/newview/fsfloaterlinkreplace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/fsfloaterlinkreplace.cpp b/indra/newview/fsfloaterlinkreplace.cpp index 9e322ee631..a5a8ab49e6 100644 --- a/indra/newview/fsfloaterlinkreplace.cpp +++ b/indra/newview/fsfloaterlinkreplace.cpp @@ -94,7 +94,7 @@ void FSFloaterLinkReplace::onTargetItemDrop(const LLUUID& target_item_id) void FSFloaterLinkReplace::updateFoundLinks() { - LLInventoryModel::item_array_t items = gInventory.collectLinksTo(mSourceUUID); + LLInventoryModel::item_array_t items = gInventory.collectLinkedItems(mSourceUUID); mRemainingItems = (U32)items.size(); LLStringUtil::format_map_t args; @@ -132,7 +132,7 @@ void FSFloaterLinkReplace::onStartClicked() return; } - LLInventoryModel::item_array_t items = gInventory.collectLinksTo(mSourceUUID); + LLInventoryModel::item_array_t items = gInventory.collectLinkedItems(mSourceUUID); LL_INFOS() << "Found " << items.size() << " inventory links that need to be replaced." << LL_ENDL; if (items.size() > 0)