diff options
Diffstat (limited to 'source/cl_demo.c')
-rw-r--r-- | source/cl_demo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/cl_demo.c b/source/cl_demo.c index dfaf463..a505058 100644 --- a/source/cl_demo.c +++ b/source/cl_demo.c @@ -646,9 +646,12 @@ static void CL_PlayDemo_f( void ) { } } -static const char *CL_PlayDemo_g( const char *partial, int state ) { - return Com_FileNameGeneratorByFilter( "demos", "*.dm2;*.dm2.gz", - partial, qfalse, state ); +static const char *CL_PlayDemo_g( const char *partial, int argnum, int state ) { + if( argnum == 1 ) { + return Com_FileNameGeneratorByFilter( "demos", "*.dm2;*.dm2.gz", + partial, qfalse, state ); + } + return NULL; } static void CL_ParseInfoString( demoInfo_t *info, int clientNum, int index, const char *string ) { |