diff options
author | Spp <none@none> | 2010-04-15 13:46:37 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-15 13:46:37 +0200 |
commit | f9987206f0e43bcd7a6bdbe8829c21be00c78795 (patch) | |
tree | 9e88263101760cb84a325ca446d071619b2419e4 /src/game/AuctionHouseBot.cpp | |
parent | 0032bb5886af087752163addef7f53bcc130d133 (diff) |
Fix AHBot crashes. Patch based on code from Xeross' repo
Closes issue 1649
--HG--
branch : trunk
Diffstat (limited to 'src/game/AuctionHouseBot.cpp')
-rw-r--r-- | src/game/AuctionHouseBot.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/game/AuctionHouseBot.cpp b/src/game/AuctionHouseBot.cpp index f3da7f27351..6ffecaf3a64 100644 --- a/src/game/AuctionHouseBot.cpp +++ b/src/game/AuctionHouseBot.cpp @@ -692,23 +692,9 @@ void AuctionHouseBot::Update() WorldSession _session(AHBplayerAccount, NULL, SEC_PLAYER, true, 0, LOCALE_enUS); Player _AHBplayer(&_session); - _AHBplayer.MinimalLoadFromDB(QueryResult_AutoPtr(NULL), AHBplayerGUID); + _AHBplayer.Initialize(AHBplayerGUID); ObjectAccessor::Instance().AddObject(&_AHBplayer); - // Only for testing, this can likely be removed, once I know it's working as expected. - /* - AuctionHouseObject* auctionHouse1 = auctionmgr.GetAuctionsMap(55); - AuctionHouseObject* auctionHouse2 = auctionmgr.GetAuctionsMap(29); - AuctionHouseObject* auctionHouse3 = auctionmgr.GetAuctionsMap(120); - uint32 totalItemsAH = (auctionHouse1->Getcount() + auctionHouse2->Getcount() + auctionHouse3->Getcount()); - uint32 totalItems = (AllianceConfig.TotalItemCounts() + HordeConfig.TotalItemCounts() + NeutralConfig.TotalItemCounts()); - if (totalItemsAH != totalItems) - { - sLog.outError("AHBot: The AuctionHouses say there are %u auctions, but, I think there are %u auctions...", totalItemsAH, totalItems); - return; - } - */ - // Add New Bids if (!sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION)) { |