Fix for no trade removable attribute flag

This commit is contained in:
AconiteGodOfSWG
2020-11-25 01:04:35 -05:00
parent 4a73df8f7f
commit 3b794cdcc8
3 changed files with 3 additions and 2 deletions

View File

@@ -1387,7 +1387,7 @@ bool ObjectAttributeManager::isNoTradeRemovable(NetworkId const & id)
if (it != s_attribs.end())
{
AttributeInfo const & info = it->second;
noTradeShared = info.noTradeRemovable;
noTradeRemovable = info.noTradeRemovable;
}
return noTradeRemovable;

View File

@@ -95,6 +95,7 @@ namespace SharedObjectAttributes
MAKE_ATTRIB (bio_link);
MAKE_ATTRIB (no_trade);
MAKE_ATTRIB (no_trade_shared);
MAKE_ATTRIB (no_trade_removable);
MAKE_ATTRIB (unique);

View File

@@ -735,7 +735,7 @@ void SwgCuiInventoryInfo::updateAttributeFlags()
if (ObjectAttributeManager::isNoTradeRemovable(object->getNetworkId()))
{
m_noTrade->SetLocalText(StringId("object_usability", "no_trade_removable").localize());
m_noTrade->SetTooltip(CuiStringIds::no_trade_shared_removable.localize());
m_noTrade->SetTooltip(CuiStringIds::no_trade_removable_tooltip.localize());
}
else if (ObjectAttributeManager::isNoTradeShared(object->getNetworkId()))
{