diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 3c557d15..db9b435f 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -491,9 +491,9 @@ void Com_StartupVariable( const char *match ) { if(!match || !strcmp(s, match)) { if(Cvar_Flags(s) == CVAR_NONEXISTENT) - Cvar_Get(s, Cmd_Argv(2), CVAR_USER_CREATED); + Cvar_Get(s, Cmd_ArgsFrom(2), CVAR_USER_CREATED); else - Cvar_Set2(s, Cmd_Argv(2), qfalse); + Cvar_Set2(s, Cmd_ArgsFrom(2), qfalse); } } } @@ -522,7 +522,7 @@ qboolean Com_AddStartupCommands( void ) { } // set commands already added with Com_StartupVariable - if ( !Q_stricmpn( com_consoleLines[i], "set", 3 ) ) { + if ( !Q_stricmpn( com_consoleLines[i], "set ", 4 ) ) { continue; }