]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
cvar: Rename aliasindex to aliases_size and only use it for size of the aliases array...
[xonotic/darkplaces.git] / sys_shared.c
index e849a9bcc2c3c571c550a5d741b5a08876bafd1e..3c6b0356698b63bb9bf8007ff6c5c9e8820739da 100644 (file)
@@ -48,10 +48,8 @@ char *Sys_TimeString(const char *timeformat)
 void Sys_Quit (int returnvalue)
 {
        // Unlock mutexes because the quit command may jump directly here, causing a deadlock
-       if ((&cmd_client)->cbuf->lock)
-               Cbuf_Unlock((&cmd_client)->cbuf);
-       if ((&cmd_server)->cbuf->lock)
-               Cbuf_Unlock((&cmd_server)->cbuf);
+       if ((cmd_local)->cbuf->lock)
+               Cbuf_Unlock((cmd_local)->cbuf);
        SV_UnlockThreadMutex();
        TaskQueue_Frame(true);