fix(Core/AuctionHouse): show correct error when bidding on unavailabl… (#26377)

This commit is contained in:
Kitzunu
2026-07-02 21:25:09 +02:00
committed by GitHub
parent 35196af895
commit 43ceb0ac42

View File

@@ -461,7 +461,14 @@ void WorldSession::HandleAuctionPlaceBid(WorldPacket& recvData)
return; return;
} }
if (!auction || auction->owner == player->GetGUID()) if (!auction)
{
// auction was cancelled or already bought by someone else
SendAuctionCommandResult(0, AUCTION_PLACE_BID, ERR_AUCTION_ITEM_NOT_FOUND);
return;
}
if (auction->owner == player->GetGUID())
{ {
//you cannot bid your own auction: //you cannot bid your own auction:
SendAuctionCommandResult(0, AUCTION_PLACE_BID, ERR_AUCTION_BID_OWN); SendAuctionCommandResult(0, AUCTION_PLACE_BID, ERR_AUCTION_BID_OWN);