Only set avatar hash in db if not zero.
This commit is contained in:
@@ -1528,7 +1528,12 @@ void
|
|||||||
ServerLobbyThread::AuthenticatePlayer(SessionWrapper session)
|
ServerLobbyThread::AuthenticatePlayer(SessionWrapper session)
|
||||||
{
|
{
|
||||||
if(session.playerData)
|
if(session.playerData)
|
||||||
|
{
|
||||||
|
if (!session.playerData->GetAvatarMD5().IsZero())
|
||||||
m_database->AsyncPlayerLogin(session.playerData->GetUniqueId(), session.playerData->GetName(), session.playerData->GetAvatarMD5().ToString());
|
m_database->AsyncPlayerLogin(session.playerData->GetUniqueId(), session.playerData->GetName(), session.playerData->GetAvatarMD5().ToString());
|
||||||
|
else
|
||||||
|
m_database->AsyncPlayerLogin(session.playerData->GetUniqueId(), session.playerData->GetName(), "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user