mirror of https://github.com/ENSL/NS.git
chore: Compare index 0 against null terminator
This commit is contained in:
parent
41791848fa
commit
0eaa1b3ff0
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue