diff options
| author | MrSmite <mrsmite@att.net> | 2011-05-03 08:36:20 -0400 |
|---|---|---|
| committer | runningnak3d <runningnak3d@gmail.com> | 2011-05-03 08:36:20 -0400 |
| commit | ebcff354a284db3452327ca0d2da55c5ee35fea5 (patch) | |
| tree | 29d7f93013b9235ea71bf57a3de81a4385e2a8f2 | |
| parent | a92038feaf440abe797ee4b0344612b6176e43a8 (diff) | |
Core/AuctionHouse: Delete no longer linked item_instace entries due to an auction.
| -rw-r--r-- | src/server/game/AuctionHouse/AuctionHouseMgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp index 566133f63fd..783e319f585 100644 --- a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp +++ b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp @@ -705,6 +705,12 @@ uint32 AuctionEntry::GetAuctionOutBid() const void AuctionEntry::DeleteFromDB(SQLTransaction& trans) const { + // Delete the item_instance for this auction + PreparedStatement *stmtDelItem = CharacterDatabase.GetPreparedStatement(CHAR_DEL_ITEM_INSTANCE); + stmtDelItem->setUInt32(0, item_guidlow); + trans->Append(stmtDelItem); + + // Delete the auction itself PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_AUCTION); stmt->setUInt32(0, Id); trans->Append(stmt); |
