Skip to content

Commit 2754d42

Browse files
committed
= can_trade was erroneously set to the same value as can_take. I'm quite positive this is a mistake since many items, like attachables used for animations are marked can_trade = false but they still show up in trade windows. With this change these items correctly do not show up for trade.
1 parent cdb2329 commit 2754d42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/xrGame/inventory_item.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ void CInventoryItem::Load(LPCSTR section)
109109
m_Description = CStringTable().translate( pSettings->r_string(section, "description") );
110110

111111
m_flags.set(Fbelt, READ_IF_EXISTS(pSettings, r_bool, section, "belt", FALSE));
112-
m_can_trade = READ_IF_EXISTS(pSettings, r_bool, section, "can_take", TRUE);
113-
m_flags.set(FCanTake, m_can_trade);
114-
m_flags.set(FCanTrade, READ_IF_EXISTS(pSettings, r_bool, section, "can_trade", TRUE));
112+
m_can_trade = READ_IF_EXISTS(pSettings, r_bool, section, "can_trade", TRUE);
113+
m_flags.set(FCanTake, READ_IF_EXISTS(pSettings, r_bool, section, "can_take", TRUE));
114+
m_flags.set(FCanTrade, m_can_trade);
115115
m_flags.set(FIsQuestItem, READ_IF_EXISTS(pSettings, r_bool, section, "quest_item",FALSE));
116116

117117

0 commit comments

Comments
 (0)