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