diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2019-08-01 09:02:51 +0200 |
---|---|---|
committer | Giacomo Pozzoni <giacomopoz@gmail.com> | 2019-08-01 09:02:51 +0200 |
commit | 2803269e8cbc8dcb462425db109b67facdf71715 (patch) | |
tree | 8a88d74b3481b3e833d71a930e203f2a0e4f6b75 | |
parent | 0b722e23cf0cdbd7b9753ffe77b349930c34779e (diff) |
Core/Misc: Fix build warning
-rw-r--r-- | src/server/game/AuctionHouse/AuctionHouseMgr.cpp | 2 | ||||
-rw-r--r-- | src/server/game/AuctionHouse/AuctionHouseMgr.h | 2 | ||||
-rw-r--r-- | src/server/game/Handlers/AuctionHouseHandler.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp index a7c3d02f07e..259406e20a1 100644 --- a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp +++ b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp @@ -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()); diff --git a/src/server/game/AuctionHouse/AuctionHouseMgr.h b/src/server/game/AuctionHouse/AuctionHouseMgr.h index 689ae8da324..36cb177f7b9 100644 --- a/src/server/game/AuctionHouse/AuctionHouseMgr.h +++ b/src/server/game/AuctionHouse/AuctionHouseMgr.h @@ -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(); diff --git a/src/server/game/Handlers/AuctionHouseHandler.cpp b/src/server/game/Handlers/AuctionHouseHandler.cpp index ddbd93218bf..c5d83a31812 100644 --- a/src/server/game/Handlers/AuctionHouseHandler.cpp +++ b/src/server/game/Handlers/AuctionHouseHandler.cpp @@ -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; |