diff options
Diffstat (limited to 'src/cgame/cg_servercmds.c')
-rw-r--r-- | src/cgame/cg_servercmds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c index e1da8399..64ef7985 100644 --- a/src/cgame/cg_servercmds.c +++ b/src/cgame/cg_servercmds.c @@ -1292,9 +1292,8 @@ static void CG_ServerCommand( void ) consoleCommand_t *command; cmd = CG_Argv( 0 ); - command = bsearch( cmd, svcommands, sizeof( svcommands ) / - sizeof( svcommands[ 0 ]), sizeof( svcommands[ 0 ] ), - cmdcmp ); + command = bsearch( cmd, svcommands, ARRAY_LEN( svcommands ), + sizeof( svcommands[ 0 ] ), cmdcmp ); if( command ) { |