]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a warning
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Jun 2010 14:05:05 +0000 (14:05 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Jun 2010 14:05:05 +0000 (14:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10252 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 840f8b7fb3cbebeb453da5b6d72b74193e5ca7af..2de4897a6094762e745ab253578de56c1b588d3e 100644 (file)
@@ -1628,7 +1628,7 @@ void Mod_LoadQ3Shaders(void)
 
        // parse custinfoparms.txt
        numcustsurfaceparms = 0;
-       if (text = f = (char *)FS_LoadFile("scripts/custinfoparms.txt", tempmempool, false, NULL))
+       if ((text = f = (char *)FS_LoadFile("scripts/custinfoparms.txt", tempmempool, false, NULL)) != NULL)
        {
                if (!COM_ParseToken_QuakeC(&text, false) || strcasecmp(com_token, "{"))
                        Con_DPrintf("scripts/custinfoparms.txt: contentflags section parsing error - expected \"{\", found \"%s\"\n", com_token);