Browse Source

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

pull/2/head
Alibek Omarov 3 years ago
parent
commit
c8410f7e46
  1. 3
      engine/server/sv_client.c

3
engine/server/sv_client.c

@ -733,7 +733,8 @@ sv_client_t *SV_ClientByName( const char *name ) @@ -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…
Cancel
Save