From 79c10210ac13df0656661cf8119ab4970447a372 Mon Sep 17 00:00:00 2001 From: Paradox Date: Mon, 14 Dec 2009 14:47:51 -0500 Subject: Fix AHexpire command not changing time in the DB when expiring auctions - original patch supplied by PainKiller --HG-- branch : trunk --- src/game/AuctionHouseBot.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/AuctionHouseBot.cpp b/src/game/AuctionHouseBot.cpp index f3833e5625f..6b86f9de306 100644 --- a/src/game/AuctionHouseBot.cpp +++ b/src/game/AuctionHouseBot.cpp @@ -1505,8 +1505,12 @@ void AuctionHouseBot::Commands(uint32 command, uint32 ahMapID, uint32 col, char* while (itr != auctionHouse->GetAuctionsEnd()) { if (itr->second->owner == AHBplayerGUID) + { itr->second->expire_time = sWorld.GetGameTime(); - + uint32 id = itr->second->Id; + uint32 expire_time = itr->second->expire_time; + CharacterDatabase.PExecute("UPDATE auctionhouse SET time = '%u' WHERE id = '%u'", expire_time, id); + } ++itr; } } -- cgit v1.2.3