mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-19 19:40:21 +00:00
engine: server: don't issue an assert on invalid client names
This commit is contained in:
parent
80e20cb55b
commit
c8410f7e46
@ -733,7 +733,8 @@ sv_client_t *SV_ClientByName( const char *name )
|
|||||||
sv_client_t *cl;
|
sv_client_t *cl;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
ASSERT( name && *name );
|
if( !COM_CheckString( name ))
|
||||||
|
return NULL;
|
||||||
|
|
||||||
for( i = 0, cl = svs.clients; i < svgame.globals->maxClients; i++, cl++ )
|
for( i = 0, cl = svs.clients; i < svgame.globals->maxClients; i++, cl++ )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user