Fix AHexpire command not changing time in the DB when expiring auctions - original patch supplied by PainKiller

--HG--
branch : trunk
This commit is contained in:
Paradox
2009-12-14 14:47:51 -05:00
parent 45d74f8e05
commit 79c10210ac
+5 -1
View File
@@ -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;
}
}