engine: server: don't issue an assert on invalid client names
This commit is contained in:
parent
80e20cb55b
commit
c8410f7e46
1 changed files with 2 additions and 1 deletions
|
@ -733,7 +733,8 @@ sv_client_t *SV_ClientByName( const char *name )
|
|||
sv_client_t *cl;
|
||||
int i;
|
||||
|
||||
ASSERT( name && *name );
|
||||
if( !COM_CheckString( name ))
|
||||
return NULL;
|
||||
|
||||
for( i = 0, cl = svs.clients; i < svgame.globals->maxClients; i++, cl++ )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue