]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_client.qc
Make sure a vote is actually running before trying to count it when a client leaves
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_client.qc
index e683a4e2438e50289eb595f1dfd9995114608301..de2603437e253f69e2c2322706a55ba846f8c92f 100644 (file)
@@ -1244,7 +1244,9 @@ void ClientDisconnect ()
 
        self.playerid = 0;
        ReadyCount();
-       VoteCount(false);
+       if(vote_called)
+       if(IS_REAL_CLIENT(self))
+               VoteCount(false);
 
        // free cvars
        GetCvars(-1);