Core/Items: Corrected logic check when placing item on auction

Closes #1017
This commit is contained in:
Shauren
2011-03-20 11:17:25 +01:00
parent 606c890960
commit 24cb1c9555
2 changed files with 3 additions and 3 deletions

View File

@@ -285,8 +285,8 @@ bool Item::Create(uint32 guidlow, uint32 itemid, Player const* owner)
// Returns false if Item is not a bag OR it is an empty bag.
bool Item::IsNotEmptyBag() const
{
if (const Bag* pBag = ToBag())
return !pBag->IsEmpty();
if (Bag const* bag = ToBag())
return !bag->IsEmpty();
return false;
}

View File

@@ -188,7 +188,7 @@ void WorldSession::HandleAuctionSellItem(WorldPacket & recv_data)
return;
}
if (!it->IsNotEmptyBag())
if (it->IsNotEmptyBag())
{
SendAuctionCommandResult(0, AUCTION_SELL_ITEM, AUCTION_INTERNAL_ERROR);
return;