[Typo] Remove CanTradeFVNoDropItem() Duplicate (#2352)

This commit is contained in:
Kinglykrab authored and GitHub committed 2022-07-31 13:57:48 -05:00
1 parent c7a3e88b81
commit e1f515ba4b
1 file changed
+5 -2
+5 -2
View File
@@ -499,8 +499,11 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st
LogTrading("Giving container [{}] ([{}]) in slot [{}] to [{}]", inst->GetItem()->Name, inst->GetItem()->ID, trade_slot, other->GetName());
// TODO: need to check bag items/augments for no drop..everything for attuned...
if (inst->GetItem()->NoDrop != 0 ||
CanTradeFVNoDropItem() && CanTradeFVNoDropItem() || other == this) {
if (
inst->GetItem()->NoDrop != 0 ||
CanTradeFVNoDropItem() ||
other == this
) {
int16 free_slot = other->GetInv().FindFreeSlotForTradeItem(inst);
if (free_slot != INVALID_INDEX) {