Core/DBLayer: Fix possible crashes from fe8cb7
This commit is contained in:
1 parent
41254653a2
commit
9b17b9c3ba
3 files changed
+24
-1
No files matched your search
@@ -102,6 +102,8 @@ m_latency(0), m_TutorialsChanged(false), recruiterId(recruiter)
|
||||
ResetTimeOutTime();
|
||||
LoginDatabase.PExecute("UPDATE account SET online = 1 WHERE id = %u;", GetAccountId());
|
||||
}
|
||||
|
||||
InitializeQueryCallbackParameters();
|
||||
}
|
||||
|
||||
/// WorldSession destructor
|
||||
@@ -940,6 +942,13 @@ void WorldSession::SetPlayer(Player *plr)
|
||||
m_GUIDLow = _player->GetGUIDLow();
|
||||
}
|
||||
|
||||
void WorldSession::InitializeQueryCallbackParameters()
|
||||
{
|
||||
// Callback parameters that have pointers in them should be properly
|
||||
// initialized to NULL here.
|
||||
_charCreateCallback.SetParam(NULL);
|
||||
}
|
||||
|
||||
void WorldSession::ProcessQueryCallbacks()
|
||||
{
|
||||
QueryResult result;
|
||||
|
||||
Reference in new issue
Block a user