mirror of
https://github.com/SWG-Source/client-tools.git
synced 2026-01-15 22:04:32 -05:00
Fix for no trade removable attribute flag
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user