chore: Compare index 0 against null terminator

This commit is contained in:
jonnypower 2018-07-14 23:51:46 -07:00
parent 41791848fa
commit 0eaa1b3ff0
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ const char *CHalfLifeTeamplay::SetDefaultPlayerTeam( CBasePlayer *pPlayer )
// update the current player of the team he is joining // update the current player of the team he is joining
const char* theTeamName = pPlayer->TeamID(); 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; const char *pTeamName = NULL;