mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Items: Corrected logic check when placing item on auction
Closes #1017
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user