Core/AuctionHouse: Delete no longer linked item_instace entries due to an auction.
This commit is contained in:
1 parent
a92038feaf
commit
ebcff354a2
1 file changed
+6
@@ -705,6 +705,12 @@ uint32 AuctionEntry::GetAuctionOutBid() const
|
|||||||
|
|
||||||
void AuctionEntry::DeleteFromDB(SQLTransaction& trans) 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);
|
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_AUCTION);
|
||||||
stmt->setUInt32(0, Id);
|
stmt->setUInt32(0, Id);
|
||||||
trans->Append(stmt);
|
trans->Append(stmt);
|
||||||
|
|||||||
Reference in new issue
Block a user