Skip to content

Commit

Permalink
Core/Misc: Use correct field type for guids in prepared statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Apr 4, 2016
1 parent 70412e7 commit 3c41584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
Expand Up @@ -431,7 +431,7 @@ void AuctionBotBuyer::PlaceBidToEntry(AuctionEntry* auction, uint32 bidPrice)

// Update auction to DB
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_AUCTION_BID);
stmt->setUInt32(0, auction->bidder);
stmt->setUInt64(0, auction->bidder);
stmt->setUInt32(1, auction->bid);
stmt->setUInt32(2, auction->Id);
trans->Append(stmt);
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Entities/Corpse/Corpse.cpp
Expand Up @@ -120,7 +120,7 @@ void Corpse::SaveToDB()
{
index = 0;
stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_CORPSE_PHASES);
stmt->setUInt32(index++, GetOwnerGUID().GetCounter()); // OwnerGuid
stmt->setUInt64(index++, GetOwnerGUID().GetCounter()); // OwnerGuid
stmt->setUInt32(index++, phaseId); // PhaseId
trans->Append(stmt);
}
Expand Down

0 comments on commit 3c41584

Please sign in to comment.