Update the missed steamid nullcheck in clientprefs

This commit is contained in:
Nicholas Hastings 2014-09-09 18:04:39 -07:00
parent 96fbb7ecda
commit 6d7115d62f

View File

@ -396,7 +396,7 @@ void ClientPrefs::CatchLateLoadClients()
/* For legacy reasons, OnClientAuthorized gives the Steam2 id here if using Steam auth */
const char *steamId = pPlayer->GetSteam2Id();
g_CookieManager.OnClientAuthorized(i, steamId[0] ? steamId : pPlayer->GetAuthString());
g_CookieManager.OnClientAuthorized(i, steamId ? steamId : pPlayer->GetAuthString());
}
}