Fix double variable name in initialization

is_asset_knowable variable name is duplicated, causing a compiler warning in gcc.
master
Zi Ree 2024-07-28 03:03:31 +02:00 committed by Andrey Kleshchev
parent ed6148d6c6
commit 30a859de7e
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ void LLInventoryGalleryContextMenu::updateMenuItemsVisibility(LLContextMenu* men
items.push_back(std::string("Copy Asset UUID"));
items.push_back(std::string("Copy Separator"));
bool is_asset_knowable = is_asset_knowable = LLAssetType::lookupIsAssetIDKnowable(obj->getType());
bool is_asset_knowable = LLAssetType::lookupIsAssetIDKnowable(obj->getType());
if ( !is_asset_knowable // disable menu item for Inventory items with unknown asset. EXT-5308
|| (! ( is_full_perm_item || gAgent.isGodlike())))
{