From 0eaa1b3ff0c47f2e251361383848834c743ea285 Mon Sep 17 00:00:00 2001 From: jonnypower Date: Sat, 14 Jul 2018 23:51:46 -0700 Subject: [PATCH] chore: Compare index 0 against null terminator --- main/source/dlls/teamplay_gamerules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/source/dlls/teamplay_gamerules.cpp b/main/source/dlls/teamplay_gamerules.cpp index 957adae5..77d2e2ef 100644 --- a/main/source/dlls/teamplay_gamerules.cpp +++ b/main/source/dlls/teamplay_gamerules.cpp @@ -183,7 +183,7 @@ const char *CHalfLifeTeamplay::SetDefaultPlayerTeam( CBasePlayer *pPlayer ) // update the current player of the team he is joining const char* theTeamName = pPlayer->TeamID(); - if ( (int)(size_t)theTeamName == '\0' || !IsValidTeam( theTeamName ) || defaultteam.value ) + if ( theTeamName[0] == '\0' || !IsValidTeam( theTeamName ) || defaultteam.value ) { const char *pTeamName = NULL;