]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix NULL crash in QW_CL_RequestNextDownload without connection.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Mar 2015 11:49:12 +0000 (11:49 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 4 Mar 2015 15:04:38 +0000 (16:04 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12179 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e3f0be4a467683a4900fd774e9206516269e22ae

cl_parse.c

index 2828515f9da56c7f5ab0b9dd547b035c72fabd48..26a0ed1120a4891854fdf6a8fcb68a80bd32adef 100644 (file)
@@ -586,6 +586,12 @@ static void QW_CL_RequestNextDownload(void)
        // clear name of file that just finished
        cls.qw_downloadname[0] = 0;
 
+       // skip the download fragment if playing a demo
+       if (!cls.netcon)
+       {
+               return;
+       }
+
        switch (cls.qw_downloadtype)
        {
        case dl_single: