Core/DBLayer: Implement async transaction completion callbacks

This commit is contained in:
Shauren authored and Ovahlord committed 2020-04-15 21:41:14 +02:00
1 parent 882c275e65
commit ca881f7e3f
22 files changed
+246 -141

No files matched your search

+1 -1
View File
@@ -27172,7 +27172,7 @@ void Player::ActivateSpec(uint8 spec)
stmt->setUInt8(1, GetActiveSpec());
WorldSession* mySess = GetSession();
mySess->GetQueryProcessor().AddQuery(CharacterDatabase.AsyncQuery(stmt)
mySess->GetQueryProcessor().AddCallback(CharacterDatabase.AsyncQuery(stmt)
.WithPreparedCallback([mySess](PreparedQueryResult result)
{
// safe callback, we can't pass this pointer directly