mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Fix build warning
This commit is contained in:
@@ -432,7 +432,7 @@ bool AuctionHouseMgr::RemoveAItem(ObjectGuid::LowType id, bool deleteItem /*= fa
|
||||
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());
|
||||
|
||||
@@ -194,7 +194,7 @@ class TC_GAME_API AuctionHouseMgr
|
||||
|
||||
void AddAItem(Item* it);
|
||||
bool RemoveAItem(ObjectGuid::LowType id, bool deleteItem = false, SQLTransaction* trans = nullptr);
|
||||
bool PendingAuctionAdd(Player* player, AuctionEntry* aEntry, Item* item);
|
||||
bool PendingAuctionAdd(Player* player, AuctionEntry* aEntry);
|
||||
uint32 PendingAuctionCount(Player const* player) const;
|
||||
void PendingAuctionProcess(Player* player);
|
||||
void UpdatePendingAuctions();
|
||||
|
||||
@@ -317,7 +317,7 @@ void WorldSession::HandleAuctionSellItem(WorldPacket& recvData)
|
||||
_player->GetName().c_str(), _player->GetGUID().GetCounter(), item->GetTemplate()->Name1.c_str(), item->GetEntry(), item->GetGUID().GetCounter(), item->GetCount(), bid, buyout, 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->Id, AUCTION_SELL_ITEM, ERR_AUCTION_NOT_ENOUGHT_MONEY);
|
||||
return;
|
||||
@@ -374,7 +374,7 @@ void WorldSession::HandleAuctionSellItem(WorldPacket& recvData)
|
||||
_player->GetName().c_str(), _player->GetGUID().GetCounter(), newItem->GetTemplate()->Name1.c_str(), newItem->GetEntry(), newItem->GetGUID().GetCounter(), newItem->GetCount(), bid, buyout, 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->Id, AUCTION_SELL_ITEM, ERR_AUCTION_NOT_ENOUGHT_MONEY);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user