From b009528e6a7e319c3e787a088b10360af4c208ac Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 9 Mar 2013 15:58:35 -0600 Subject: [PATCH] Fix displaying demo name when loading demo --- code/client/cl_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)