diff options
author | angela <angela@lindenlab.com> | 2010-02-11 23:34:20 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2010-02-11 23:34:20 +0800 |
commit | f078c53da8ee11b7bb383c0974875b5ff4a15c6a (patch) | |
tree | f8fd975ace547f1e3c194cfa3446f1ef35b2d12b /indra/newview/llagentwearables.cpp | |
parent | 3684b437a0e1c4c8be6d05e3a5f131265b8f1a39 (diff) | |
parent | 5e12a2cb697ad1d82a472cc35fc3570209e5ec0e (diff) |
merge with remote repo
Diffstat (limited to 'indra/newview/llagentwearables.cpp')
-rw-r--r-- | indra/newview/llagentwearables.cpp | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index 6620780b27..6078620e87 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -1290,25 +1290,29 @@ void LLAgentWearables::makeNewOutfit(const std::string& new_folder_name, j, new_wearable, todo); - if (isWearableCopyable((EWearableType)type, j)) + llassert(item); + if (item) { - copy_inventory_item( - gAgent.getID(), - item->getPermissions().getOwner(), - item->getUUID(), - folder_id, - new_name, - cb); - } - else - { - move_inventory_item( - gAgent.getID(), - gAgent.getSessionID(), - item->getUUID(), - folder_id, - new_name, - cb); + if (isWearableCopyable((EWearableType)type, j)) + { + copy_inventory_item( + gAgent.getID(), + item->getPermissions().getOwner(), + item->getUUID(), + folder_id, + new_name, + cb); + } + else + { + move_inventory_item( + gAgent.getID(), + gAgent.getSessionID(), + item->getUUID(), + folder_id, + new_name, + cb); + } } } } |