diff options
| author | Paradox <iamparadox@netscape.net> | 2009-12-14 14:47:51 -0500 |
|---|---|---|
| committer | Paradox <iamparadox@netscape.net> | 2009-12-14 14:47:51 -0500 |
| commit | 79c10210ac13df0656661cf8119ab4970447a372 (patch) | |
| tree | b1fb5894b4b3e73aa9555ae66e12df126847d02e /src | |
| parent | 45d74f8e05b0442a08713c12287f6becda34f892 (diff) | |
Fix AHexpire command not changing time in the DB when expiring auctions - original patch supplied by PainKiller
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/AuctionHouseBot.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; } } |
