Only set avatar hash in db if not zero.

This commit is contained in:
lotodore
2010-08-22 19:35:43 +00:00
parent 73cf41de27
commit 6972437f64
+6 -1
View File
@@ -1528,7 +1528,12 @@ void
ServerLobbyThread::AuthenticatePlayer(SessionWrapper session) ServerLobbyThread::AuthenticatePlayer(SessionWrapper session)
{ {
if(session.playerData) if(session.playerData)
m_database->AsyncPlayerLogin(session.playerData->GetUniqueId(), session.playerData->GetName(), session.playerData->GetAvatarMD5().ToString()); {
if (!session.playerData->GetAvatarMD5().IsZero())
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