Core/Items: Corrected logic in Item::CanBeTraded, fixes mailing and guild banks

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-09-22 11:19:34 +02:00
parent 9ca1efa1e2
commit 562a8c272d
+1 -1
View File
@@ -747,7 +747,7 @@ bool Item::CanBeTraded(bool mail, bool trade) const
if (m_lootGenerated)
return false;
if ((!mail || !IsBoundAccountWide()) && (IsSoulBound() && !HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAG_BOP_TRADEABLE) || !trade))
if ((!mail || !IsBoundAccountWide()) && (IsSoulBound() && (!HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAG_BOP_TRADEABLE) || !trade)))
return false;
if (IsBag() && (Player::IsBagPos(GetPos()) || !((Bag const*)this)->IsEmpty()))