Skip to content

Commit

Permalink
Ahbot seams use the same save system as AH
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Jul 15, 2011
1 parent e9e7e5c commit f393d9a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/game/AuctionHouseMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,14 +990,12 @@ uint32 AuctionEntry::GetAuctionOutBid() const

void AuctionEntry::DeleteFromDB() const
{
return;
//No SQL injection (Id is integer)
CharacterDatabase.PExecute("DELETE FROM auction WHERE id = '%u'", Id);
}

void AuctionEntry::SaveToDB() const
{
return;
//No SQL injection (no strings)
CharacterDatabase.PExecute("INSERT INTO auction (id,houseid,itemguid,item_template,item_count,item_randompropertyid,itemowner,buyoutprice,time,moneyTime,buyguid,lastbid,startbid,deposit) "
"VALUES ('%u', '%u', '%u', '%u', '%u', '%i', '%u', '%u', '" UI64FMTD "', '" UI64FMTD "', '%u', '%u', '%u', '%u')",
Expand Down

0 comments on commit f393d9a

Please sign in to comment.