summaryrefslogtreecommitdiff
path: root/src/game/g_svcmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_svcmds.c')
-rw-r--r--src/game/g_svcmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c
index 9211033b..db14a917 100644
--- a/src/game/g_svcmds.c
+++ b/src/game/g_svcmds.c
@@ -588,7 +588,7 @@ qboolean ConsoleCommand( void )
trap_Argv( 0, cmd, sizeof( cmd ) );
- command = bsearch( cmd, svcmds, sizeof( svcmds ) / sizeof( struct svcmd ),
+ command = bsearch( cmd, svcmds, ARRAY_LEN( svcmds ),
sizeof( struct svcmd ), cmdcmp );
if( !command )
@@ -614,7 +614,7 @@ void G_RegisterCommands( void )
{
int i;
- for( i = 0; i < sizeof( svcmds ) / sizeof( svcmds[ 0 ] ); i++ )
+ for( i = 0; i < ARRAY_LEN( svcmds ); i++ )
{
if( svcmds[ i ].dedicated && !g_dedicated.integer )
continue;
@@ -628,7 +628,7 @@ void G_UnregisterCommands( void )
{
int i;
- for( i = 0; i < sizeof( svcmds ) / sizeof( svcmds[ 0 ] ); i++ )
+ for( i = 0; i < ARRAY_LEN( svcmds ); i++ )
{
if( svcmds[ i ].dedicated && !g_dedicated.integer )
continue;