summaryrefslogtreecommitdiff
path: root/src/cgame/cg_consolecmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_consolecmds.c')
-rw-r--r--src/cgame/cg_consolecmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgame/cg_consolecmds.c b/src/cgame/cg_consolecmds.c
index 19216eea..5dab9757 100644
--- a/src/cgame/cg_consolecmds.c
+++ b/src/cgame/cg_consolecmds.c
@@ -211,7 +211,7 @@ qboolean CG_ConsoleCommand( void )
consoleCommand_t *cmd;
cmd = bsearch( CG_Argv( 0 ), commands,
- sizeof( commands ) / sizeof( commands[ 0 ]), sizeof( commands[ 0 ] ),
+ ARRAY_LEN( commands ), sizeof( commands[ 0 ] ),
cmdcmp );
if( !cmd )
@@ -234,7 +234,7 @@ void CG_InitConsoleCommands( void )
{
int i;
- for( i = 0 ; i < sizeof( commands ) / sizeof( commands[ 0 ] ) ; i++ )
+ for( i = 0; i < ARRAY_LEN( commands ); i++ )
trap_AddCommand( commands[ i ].cmd );
//