Core/Handlers: Fix logic error in HandleAuctionRemoveItem (#30440)

This commit is contained in:
lineagedr
2024-11-14 19:41:29 +02:00
committed by GitHub
parent 16bd7ef342
commit 1d1c260209

View File

@@ -508,7 +508,7 @@ void WorldSession::HandleAuctionRemoveItem(WorldPackets::AuctionHouse::AuctionRe
CharacterDatabaseTransaction trans = CharacterDatabase.BeginTransaction();
if (auction && auction->Owner == player->GetGUID())
{
if (auction->Bidder.IsEmpty()) // If we have a bidder, we have to send him the money he paid
if (!auction->Bidder.IsEmpty()) // If we have a bidder, we have to send him the money he paid
{
uint64 cancelCost = CalculatePct(auction->BidAmount, 5u);
if (!player->HasEnoughMoney(cancelCost)) //player doesn't have enough money