diff --git a/code/client/cl_main.c b/code/client/cl_main.c index c74bbdc7..4700c9be 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -1142,13 +1142,13 @@ void CL_PlayDemo_f( void ) { Com_Error( ERR_DROP, "couldn't open %s", name); return; } - Q_strncpyz( clc.demoName, Cmd_Argv(1), sizeof( clc.demoName ) ); + Q_strncpyz( clc.demoName, arg, sizeof( clc.demoName ) ); Con_Close(); clc.state = CA_CONNECTED; clc.demoplaying = qtrue; - Q_strncpyz( clc.servername, Cmd_Argv(1), sizeof( clc.servername ) ); + Q_strncpyz( clc.servername, arg, sizeof( clc.servername ) ); #ifdef LEGACY_PROTOCOL if(protocol <= com_legacyprotocol->integer)