]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
cmd: Reimplement console buffer system as a cyclic doubly linked list
[xonotic/darkplaces.git] / cl_demo.c
index b8445419514a6fcaab6394828c46f86319edde8a..5acbaa4eec825a211ded2e1b1da4a063cf7007b6 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -275,7 +275,7 @@ void CL_ReadDemoMessage(void)
                        CL_ParseServerMessage();
 
                        if (cls.signon != SIGNONS)
-                               Cbuf_Execute(&cmd_client); // immediately execute svc_stufftext if in the demo before connect!
+                               Cbuf_Execute((&cmd_client)->cbuf); // immediately execute svc_stufftext if in the demo before connect!
 
                        // In case the demo contains a "svc_disconnect" message
                        if (!cls.demoplayback)