mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
@@ -402,7 +402,7 @@ bool AuctionHouseMgr::RemoveAItem(ObjectGuid::LowType id, bool deleteItem)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AuctionHouseMgr::PendingAuctionAdd(Player* player, AuctionEntry* aEntry, Item* item)
|
||||
bool AuctionHouseMgr::PendingAuctionAdd(Player* player, AuctionEntry* aEntry)
|
||||
{
|
||||
PlayerAuctions* thisAH;
|
||||
auto itr = pendingAuctionMap.find(player->GetGUID());
|
||||
|
||||
@@ -271,7 +271,7 @@ class TC_GAME_API AuctionHouseMgr
|
||||
|
||||
void AddAItem(Item* it);
|
||||
bool RemoveAItem(ObjectGuid::LowType id, bool deleteItem = false);
|
||||
bool PendingAuctionAdd(Player* player, AuctionEntry* aEntry, Item* item);
|
||||
bool PendingAuctionAdd(Player* player, AuctionEntry* aEntry);
|
||||
uint32 PendingAuctionCount(const Player* player) const;
|
||||
void PendingAuctionProcess(Player* player);
|
||||
void UpdatePendingAuctions();
|
||||
|
||||
@@ -269,7 +269,7 @@ void WorldSession::HandleAuctionSellItem(WorldPackets::AuctionHouse::AuctionSell
|
||||
_player->GetGUID().ToString().c_str(), _player->GetName().c_str(), item->GetGUID().ToString().c_str(), item->GetTemplate()->GetDefaultLocaleName(), AH->auctioneer, item->GetCount(), packet.MinBid, packet.BuyoutPrice, auctionTime, AH->GetHouseId());
|
||||
|
||||
// Add to pending auctions, or fail with insufficient funds error
|
||||
if (!sAuctionMgr->PendingAuctionAdd(_player, AH, item))
|
||||
if (!sAuctionMgr->PendingAuctionAdd(_player, AH))
|
||||
{
|
||||
SendAuctionCommandResult(AH, AUCTION_SELL_ITEM, ERR_AUCTION_NOT_ENOUGH_MONEY);
|
||||
return;
|
||||
@@ -326,7 +326,7 @@ void WorldSession::HandleAuctionSellItem(WorldPackets::AuctionHouse::AuctionSell
|
||||
_player->GetGUID().ToString().c_str(), _player->GetName().c_str(), newItem->GetGUID().ToString().c_str(), newItem->GetTemplate()->GetDefaultLocaleName(), AH->auctioneer, newItem->GetCount(), packet.MinBid, packet.BuyoutPrice, auctionTime, AH->GetHouseId());
|
||||
|
||||
// Add to pending auctions, or fail with insufficient funds error
|
||||
if (!sAuctionMgr->PendingAuctionAdd(_player, AH, newItem))
|
||||
if (!sAuctionMgr->PendingAuctionAdd(_player, AH))
|
||||
{
|
||||
SendAuctionCommandResult(AH, AUCTION_SELL_ITEM, ERR_AUCTION_NOT_ENOUGH_MONEY);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user