mirror of
https://github.com/ENSL/NS.git
synced 2025-03-24 11:12:25 +00:00
chore: Compare index 0 against null terminator
This commit is contained in:
parent
41791848fa
commit
0eaa1b3ff0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue