Core/DBLayer: Implement async transaction completion callbacks
This commit is contained in:
1 parent
882c275e65
commit
ca881f7e3f
22 files changed
+246
-141
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user