From: havoc Date: Fri, 25 Jun 2010 14:05:05 +0000 (+0000) Subject: fix a warning X-Git-Tag: xonotic-v0.1.0preview~230^2~226 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0f0b19b509e71e991001841570e71cf5ef243470;p=xonotic%2Fdarkplaces.git fix a warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10252 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_shared.c b/model_shared.c index 840f8b7f..2de4897a 100644 --- a/model_shared.c +++ b/model_shared.c @@ -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);