mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 20:19:49 +01:00
[3.3.5] Core/AuctionHouse: Auction bidders (#18328)
* Save more auction bidders than the highest bidder only
This commit is contained in:
@@ -515,6 +515,16 @@ void WorldSession::HandleAuctionPlaceBid(WorldPacket& recvData)
|
||||
stmt->setUInt32(2, auction->Id);
|
||||
trans->Append(stmt);
|
||||
|
||||
if (auction->bidders.find(player->GetGUID()) == auction->bidders.end())
|
||||
{
|
||||
// save new bidder in list, and save record to db
|
||||
auction->bidders.insert(player->GetGUID());
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_AUCTION_BIDDERS);
|
||||
stmt->setUInt32(0, auction->Id);
|
||||
stmt->setUInt32(1, auction->bidder);
|
||||
trans->Append(stmt);
|
||||
}
|
||||
|
||||
SendAuctionCommandResult(auction->Id, AUCTION_PLACE_BID, ERR_AUCTION_OK, 0);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user