From e1f515ba4bed83ff1f7a2a0e6e6b3d35cd326fd0 Mon Sep 17 00:00:00 2001 From: Kinglykrab <89047260+Kinglykrab@users.noreply.github.com> Date: Sun, 31 Jul 2022 14:57:48 -0400 Subject: [PATCH] [Typo] Remove CanTradeFVNoDropItem() Duplicate (#2352) --- zone/trading.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zone/trading.cpp b/zone/trading.cpp index 22c1006b5..64594c507 100644 --- a/zone/trading.cpp +++ b/zone/trading.cpp @@ -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) {