From 73d31e2552a811e30b4c12b11c845552e6fb6973 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 27 May 2009 16:38:50 -0500 Subject: [7898] Improve client error output at different mail send errors, cleanup code. Author: VladimirMangos --HG-- branch : trunk --- src/game/Item.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game/Item.cpp') 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; } -- cgit v1.2.3