aboutsummaryrefslogtreecommitdiff
path: root/src/game/Item.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-27 16:38:50 -0500
committermegamage <none@none>2009-05-27 16:38:50 -0500
commit73d31e2552a811e30b4c12b11c845552e6fb6973 (patch)
treebacfb306e55467685bea71a5a5d3475be3b6f002 /src/game/Item.cpp
parent35ba3ca6538256c41a0961016e9d67a51ca9b7ee (diff)
[7898] Improve client error output at different mail send errors, cleanup code. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r--src/game/Item.cpp10
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;
}