From 6d7115d62f8da6732ec45e79e8948dc64df95bf6 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 9 Sep 2014 18:04:39 -0700 Subject: [PATCH] Update the missed steamid nullcheck in clientprefs --- extensions/clientprefs/extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/clientprefs/extension.cpp b/extensions/clientprefs/extension.cpp index 30f08344..a31f42e6 100644 --- a/extensions/clientprefs/extension.cpp +++ b/extensions/clientprefs/extension.cpp @@ -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()); } }