mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 09:11:30 +00:00
[Typo] Remove CanTradeFVNoDropItem() Duplicate (#2352)
This commit is contained in:
parent
c7a3e88b81
commit
e1f515ba4b
@ -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());
|
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...
|
// TODO: need to check bag items/augments for no drop..everything for attuned...
|
||||||
if (inst->GetItem()->NoDrop != 0 ||
|
if (
|
||||||
CanTradeFVNoDropItem() && CanTradeFVNoDropItem() || other == this) {
|
inst->GetItem()->NoDrop != 0 ||
|
||||||
|
CanTradeFVNoDropItem() ||
|
||||||
|
other == this
|
||||||
|
) {
|
||||||
int16 free_slot = other->GetInv().FindFreeSlotForTradeItem(inst);
|
int16 free_slot = other->GetInv().FindFreeSlotForTradeItem(inst);
|
||||||
|
|
||||||
if (free_slot != INVALID_INDEX) {
|
if (free_slot != INVALID_INDEX) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user