diff options
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r-- | src/game/Item.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 02a9b37d994..5f281f6b98d 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -701,16 +701,16 @@ bool Item::IsEquipped() const bool Item::CanBeTraded() const { - if(IsSoulBound()) + if (IsSoulBound()) return false; - if(IsBag() && (Player::IsBagPos(GetPos()) || !((Bag const*)this)->IsEmpty()) ) + if (IsBag() && (Player::IsBagPos(GetPos()) || !((Bag const*)this)->IsEmpty()) ) return false; - if(Player* owner = GetOwner()) + if (Player* owner = GetOwner()) { - if(owner->CanUnequipItem(GetPos(),false) != EQUIP_ERR_OK ) + if (owner->CanUnequipItem(GetPos(),false) != EQUIP_ERR_OK ) return false; - if(owner->GetLootGUID()==GetGUID()) + if (owner->GetLootGUID()==GetGUID()) return false; } |