engine: server: don't issue an assert on invalid client names

This commit is contained in:
Alibek Omarov 2022-04-02 13:36:53 +03:00
parent 80e20cb55b
commit c8410f7e46

View File

@ -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++ )
{