mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Handlers: Fix logic error in HandleAuctionRemoveItem (#30440)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user