]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
cmd: Dynamically allocate the command interpreters
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index 74733bfb0f55ced81ac21d06f33ea18a15c2303c..87c5df4accacaa479f96ab0e2ebf5e4ca565fa84 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1574,15 +1574,15 @@ qbool FS_ChangeGameDirs(int numgamedirs, char gamedirs[][MAX_QPATH], qbool compl
 
        if (cls.demoplayback)
        {
-               CL_Disconnect_f(&cmd_client);
+               CL_Disconnect_f(cmd_client);
                cls.demonum = 0;
        }
 
        // unload all sounds so they will be reloaded from the new files as needed
-       S_UnloadAllSounds_f(&cmd_client);
+       S_UnloadAllSounds_f(cmd_client);
 
        // restart the video subsystem after the config is executed
-       Cbuf_InsertText(&cmd_client, "\nloadconfig\nvid_restart\n\n");
+       Cbuf_InsertText(cmd_client, "\nloadconfig\nvid_restart\n\n");
 
        return true;
 }