Skip to content

Commit db4165e

Browse files
JaytappDennisPixelWeaver
authored
Fix ahbot bids no longer saved to the database issue#141 (#142)
Co-authored-by: Dennis <[email protected]> Co-authored-by: Antoine Cajot <[email protected]>
1 parent e2b8607 commit db4165e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AuctionHouseBot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ void AuctionHouseBot::Buy(Player* AHBplayer, AHBConfig* config, WorldSession* se
458458
//
459459
// update/save the auction into database
460460
//
461-
//CharacterDatabase.DirectExecute("UPDATE auctionhouse SET buyguid = '{}', lastbid = '{}' WHERE id = '{}'", auction->bidder.GetCounter(), auction->bid, auction->Id);
461+
CharacterDatabase.Execute("UPDATE auctionhouse SET buyguid = '{}', lastbid = '{}' WHERE id = '{}'", auction->bidder.GetCounter(), auction->bid, auction->Id);
462462

463463
if (config->TraceBuyer)
464464
{

0 commit comments

Comments
 (0)