Skip to content
Snippets Groups Projects
Commit c033536b authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Crashfix

parent 73d58256
No related branches found
No related tags found
No related merge requests found
......@@ -1152,7 +1152,7 @@ void create_inventory_callingcard(const LLUUID& avatar_id, const LLUUID& parent
LLAvatarName av_name;
LLAvatarNameCache::get(avatar_id, &av_name);
create_inventory_item(gAgent.getID(), gAgent.getSessionID(),
parent, LLTransactionID::tnull, av_name.getUserName(), item_desc, LLAssetType::AT_CALLINGCARD,
(parent.isNull() ? gInventory.findCategoryUUIDForType(LLFolderType::FT_CALLINGCARD) : parent), LLTransactionID::tnull, av_name.getUserName(), item_desc, LLAssetType::AT_CALLINGCARD,
LLInventoryType::IT_CALLINGCARD, NO_INV_SUBTYPE, PERM_MOVE | PERM_TRANSFER, cb);
}
......@@ -2464,7 +2464,7 @@ LLUUID find_possible_item_for_regeneration(const LLViewerInventoryItem *target_i
++item_iter)
{
const LLViewerInventoryItem *item = (*item_iter);
if (true) return item->getUUID();
if (item) return item->getUUID();
}
return LLUUID::null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment